joelambert/morf

Support all CSS properties

Opened this issue · 1 comments

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.

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.