vivus icon indicating copy to clipboard operation
vivus copied to clipboard

Animate fill hack and data-duration

Open nreck opened this issue 5 years ago • 1 comments

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

nreck avatar Sep 03 '19 07:09 nreck

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,

maxwellito avatar Sep 08 '19 11:09 maxwellito