SkidX / tweene

JavaScript Animation Proxy
http://tweene.com
Artistic License 2.0
353 stars 29 forks source link

Initial value of Scale incorrect [Velocity] #22

Open Maeldor opened 8 years ago

Maeldor commented 8 years ago

When tweening an object's scale with to, the initial value set by the stylesheet is ignored, and it tweens from 1.0 regardless of what is set. This looks even worse when you restart: because the object's scale is set to 1.0, it no longer looks correct at the beginning of the animation.

I thought forcefeeding the value by using fromTo, with the correct initial scale, would fix the problem, but that doesn't work either! It starts from 1.0 even with fromTo.

What's going on here? Why is it ignoring the initial scale/transform?

Any chance of a fix?

Thanks!

Maeldor commented 8 years ago

I have found you can force the initial scale by using set before the animation, which works for now, but this isn't ideal when it's already defined in the stylesheet.