N
N
Nikita Borzenkov2016-09-12 07:50:53
JavaScript
Nikita Borzenkov, 2016-09-12 07:50:53

How to animate an object along a pre-prepared curve?

There is a curve in svg (arbitrary). The object must fly along this curve. It is desirable that this is animated inside the canvas. How to do this? Perhaps not with the svg path, but with a prearranged arbitrary curve.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
HamSter, 2016-09-12
@HamSter007

Example 1. SVG SMIL
Example 2. SVG Animation TwinMax
MorphSVGPlugin by GreenSock with example

T
twobomb, 2016-09-18
@twobomb

I once wrote, hold down the LMB and draw a curve and the ball will move along it. https://jsfiddle.net/twobomb/p4gbLswz/

I
Ildar Saribzhanov, 2016-09-12
@Bluz

There is such a post, I didn’t use it myself, but the movement along the trajectory just for svg is described css-live.ru/articles/rukovodstvo-po-svg-animaciyam...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question