frozeman / meteor-animation-helper-velocity

Animates elements inside a {{> AnimateWithVelocity}} block, by adding specific attributes to elements.
22 stars 2 forks source link

Added option to avoid animation on render #5

Closed bitomule closed 10 years ago

bitomule commented 10 years ago

I've added data-animate-on-render option to disable animation on render. It could be useful inside #each loops where you don't want to animate the render, just when a new element is inserted or removed.

frozeman commented 10 years ago

Thanks, could you please also update the read me, so people will know about this addition?

bitomule commented 10 years ago

sure!

bitomule commented 10 years ago

added to readme. Is that enough?

bitomule commented 10 years ago

I think this brings a new problem. If animation after status is expected (opacity should be 1 for example) and I use the ignore render option then item is displayed with the wrong css (opacity 0 for example).

I think the best way to fix this is always run animation but with 0 time if no animation on rendered is true.

What do you think?

bitomule commented 10 years ago

sorry, my bad, that's the behavior before my change ;)

bitomule commented 10 years ago

Now it's back with all your code, just added the option to avoid animation on render and readme.