Snap.svg icon indicating copy to clipboard operation
Snap.svg copied to clipboard

visibility not supported in animate method?

Open WillyMaikowski opened this issue 11 years ago • 3 comments

This code doesnt work: e.animate( { visibility: 'visible' }, 500 );

Trigger this error: Error: Invalid value for attribute width="visible" (snap.svg.js:930)

WillyMaikowski avatar May 29 '15 07:05 WillyMaikowski

Not sure this makes sense...whats an interpolated value of a state, plus its css rather than svg ? Have you tried animating opacity for example if thats the type of thing you are after ?

ibrierley avatar May 29 '15 10:05 ibrierley

I was not sure if this was an issue or not but, viewing documentations, visibility is an animatable attribute and I supposed that Snap should support it. Of course, work fine animating opacity.

WillyMaikowski avatar May 29 '15 16:05 WillyMaikowski

I'm not actually sure if any css attributes are animateable in Snap, Snap tends to do svg attributes as opposed to css, but there is overlap. css animation in Snap would be interesting though!

ibrierley avatar May 29 '15 17:05 ibrierley