dancrew32 / AWESOME-JS

A Lightweight JavaScript Framework that performs common tasks (IE6, 7, 8, FF, WK, Opera)
awesomejs
2 stars 0 forks source link

Add Animation + animation queue #4

Closed dancrew32 closed 13 years ago

dancrew32 commented 13 years ago

Check out how emile.js is doing it. They say it's only about 50 lines. You might be able to reuse $.style to update per step

dancrew32 commented 13 years ago

Now that animate works for common properties, there are some bugs with cross browser opacity and other filter alias ie properties.

Get $.style to assign default values for properties that aren't previously defined in the css. E.g. filter:alpha(100) if el.filters('alpha') is undefined. Use setter el.filters('alpha').opacity = 100 or something like that

There is also a bug with the getUnit() method in $.animate() if you pass in a number as opposed to a string.