A
A
A person from Kazakhstan2019-07-10 04:51:31
JavaScript
A person from Kazakhstan, 2019-07-10 04:51:31

Why is anime.js not working?

For animation I use anime.js
I took a regular primitive

<svg width="200" height="200" viewbox="-0.1 -0.1 4 4">
  <path id="path" d="M0,0  2,0  2,0  2,2  0,2z" fill="none" stroke="red" stroke-width="0.02"/>
</svg>

And then according to the instructions on onclick , the shape change animation should start ( the demo is attached with commented svg code ) but this thing does not work
Demo: codepen.io/pen/lensky

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RAX7, 2019-07-10
@LenovoId

for animation use d attribute, not points
https://codepen.io/RAX7/pen/RzEqqy?editors=1010

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question