svgdotjs / svg.js

The lightweight library for manipulating and animating SVG
https://svgjs.dev
Other
11.01k stars 1.07k forks source link

Fill mode freeze? #1182

Closed nikkisingh111333 closed 3 years ago

nikkisingh111333 commented 3 years ago

Hey i want to know how to use fill='freeze' in svg.js ...i m trying this not working as i guessed it: patterns[c].stroke({ dasharray: 10000, dashoffset: 10000 }).animate({ duration: 6000, when: 'now', swing: false, delay: 1000, times: 1, _**fill:'freeze'**_ }).stroke({ dasharray: 10000, dashoffset: 0 })

Fuzzyma commented 3 years ago

There is nothing like a freeze option on svg.js' animations. Any fill you animate will stay at its last value anyway.