Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animate fill hack and data-duration #224

Open
nreck opened this issue Sep 3, 2019 · 1 comment
Open

Animate fill hack and data-duration #224

nreck opened this issue Sep 3, 2019 · 1 comment

Comments

@nreck
Copy link

nreck commented Sep 3, 2019

I'm having some trouble with the animate fill hack. When using the hack with scenario and data-duration, the finished class is also delayed, and I can't control this delay.

JS
new Vivus( 'back2', { type: 'scenario' }, function (obj) { obj.el.classList.add('finished'); } );

HTML/SVG
<path data-duration="50" data-start="100"></path>

See example here

@maxwellito
Copy link
Owner

Hi @nreck
Could you provide the SVG you're using for this animation? Maybe you have a hidden path somewhere, or your <path> might be a bit complex causing some extra invisible animation.
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants