How can be zigzag line drawing possible background? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can be zigzag line drawing possible background?

Imagine a odd-even rows with image and text. I want to incorporate background line drawing animation which can be center aligned with image.

14th Jun 2020, 6:02 AM
* A Learner *
* A Learner * - avatar
2 Answers
0
Honestly I haven't started yet because I'm not sure which library I should use here.
14th Jun 2020, 6:19 AM
* A Learner *
* A Learner * - avatar
0
You can make slanted line from svg, set it it as repeated svg image background. background: url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' style='stroke:rgb(0,0,0);stroke-width:1'><line x1='0' y1='0' x2='50%' y2='100%'/><line x1='50%' y1='100%' x2='100%' y2='0'/></svg>") 0% 0%/5% 5%; https://code.sololearn.com/WG3R9UobrHIS/?ref=app https://code.sololearn.com/Wbs3iP5jU5Fn/?ref=app https://code.sololearn.com/Wp17OgZnBB9n/?ref=app
14th Jun 2020, 7:33 AM
Calviղ
Calviղ - avatar