A
A
Andrej Sharapov2018-09-03 16:19:33
JavaScript
Andrej Sharapov, 2018-09-03 16:19:33

What is the best way to implement timeline?

Hello. I'm making SVG Timeline, but due to insufficient knowledge of svg, I can't solve one problem.

Task: It is
necessary that when hovering over a certain group, for example the fourth, the path of the third (and further previous) groups fills the gray line. I tried to implement the rotation of the path through css transform, but it turns out a lot of code and not beautiful. Perhaps there is a simpler solution, for example, through js or creating an svg mask. Who will advise what? I would appreciate a solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-09-03
@webinar

Isn't it easier to make a gray line initially with segments and just paint them?
But you can still try to make a gradient and apply it to the entire line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question