M
M
Makar Gerasimov2016-12-02 18:57:26
css
Makar Gerasimov, 2016-12-02 18:57:26

How to loop an animation?

In general, there is a square, along its contour it is necessary to move the arrow (changing its position in space). I did not find a way to implement everything in one keyframe, so I divided it into seven stages. Everything works fine, but the repetition of the cycle of sequential launch of the animation does not occur :(
Sharp jerks are specially provided:
codepen.io/anon/pen/KNZOdO
4400e9feb9ca449494abbae440ca9574.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Suntsev, 2016-12-02
@GreyCrew

You now have 7 animations, make just one and divide it into 7 parts so that each one lasts about 14% of the time. (% may be different)
Here is an example

D
Dmitry Khristoev, 2016-12-04
@Haoss

there is an easier option codepen.io/haoss/pen/ZBrrLJ

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question