ded / morpheus

A Brilliant Animator
504 stars 57 forks source link

Use CSS transitions if available #29

Closed bengourley closed 11 years ago

bengourley commented 12 years ago

It would be really good if morpheus would use CSS transitions if available. I imagine you thought about this and went with requestAnimationFrame instead, but aren't CSS transitions more performant? Why did you decide against it?

ded commented 11 years ago

css transitions can be easily done by swapping classnames and letting css handle it. nevertheless, contrary to popular belief, css transitions are not hardware-accelerated (altho transforms are). not to mention, the requestAnimationFrame method is receiving more and more development attention and makes more sense for the future of JS animating