jsguy / mithril.animate

A compact library that allows you to bind CSS3 animations to properties on your Mithril elements.
MIT License
87 stars 4 forks source link

possibly doc error? #7

Closed futurist closed 8 years ago

futurist commented 8 years ago

The doc in http://jsguy.github.io/mithril.animate/#Using_it

m("div", { opacity: o.ani }, "I can fade away");
m("div", { onclick: m.trigger('opacity', 0), "I also fade away");

should have m.e(... instead?

jsguy commented 8 years ago

Yep, typo snuck in, thanks for spotting 👍