joelambert / morf

A Javascript work-around for hardware accelerated CSS3 transitions with custom easing functions
http://www.joelambert.co.uk/morf
Other
507 stars 51 forks source link

Support all CSS properties #8

Open jeremyckahn opened 13 years ago

jeremyckahn commented 13 years ago

Right now, Morf only supports a handful of CSS properties. This is actually due to a Shifty/Mifty config issue, I think. I'm looking into this and will hopefully have a pull request soon.

jeremyckahn commented 13 years ago

So, I did a little digging on this. Literally, all that needs to be done is add in some of the Shifty plugins I cut out to save on space. Once I put in the standard Shifty build (with all plugins) the other CSS properties animate properly. Considering this, I think it makes sense to remove Shifty/Mifty from the Morf code and make it a dependency – Morf will gain a lot functionality from this.

The downside of course is that Morf will no longer be eligible to be listed on microjs.com, at least not in its current state. Personally I vote for separating the projects out, because Morf becomes much more useful when Shifty has more of the plugins included. What do you think?

I made a new Morf branch that adds support for CSS units and colors. It's just a different Shifty configuration, check it out.

Note: The gzipped size of mifty.min.js with the full Shifty is 5.71kb.