У меня есть путь SVG:анимировать элемент DIV вдоль пути SVG, нажав кнопку
<path d="M124 442 L124 442 L166 393 L162 332 L200 251 L179 76" stroke="red" stroke-width="2" fill="none" fill-opacity="0.1"></path>
И я хочу, чтобы элемент DIV двигаться по этому пути, когда я нажимаю «рядом кнопку».
Это как:
*startpoint (beginning of the path) + DIV element
*click next-button* + DIV element moves to station 1
*station 1
*click next-button* + DIV element moves to station 2
*station 2
*click next-button* + DIV element moves to the end of the path
endpoint (end of the path)
Кто-нибудь есть идея, как я могу сделать это?
возможно дубликат [оживляющий DIV вдоль пути SVG] (http://stackoverflow.com/questions/11497494/animating-a-div-along-svg-path) –