rstacruz / jquery.transit

Super-smooth CSS3 transformations and transitions for jQuery
http://ricostacruz.com/jquery.transit
7.3k stars 864 forks source link

[Feature Request] Button to trigger animations on website #148

Open paultannenbaum opened 10 years ago

paultannenbaum commented 10 years ago

I viewed this plugins website on my phone to see how the animations perform on it. Because all animations are triggered via the hover action, one can not trigger animations via a touch device.

You should consider putting some kind of ui element for each animation that can be triggered by click, to get around this issue.

JacobBennett commented 10 years ago

I suppose this could be done relatively easily by using Modernizer to detect touch devices and changing the hover events to click events eh?

paultannenbaum commented 10 years ago

Of course I can do that. But as a front end developer who is contemplating using the plugin in a project, the first thing I did was check the site on my phone to see how the transitions looked. I imagine I am not the only one who does this, which is why I mentioned it.

JacobBennett commented 10 years ago

True. I found that the animations from this library work pretty seamlessly on iPhones but can't say the same about my android phone. I don't imagine that using jQuery animate functions would be any faster or smoother though since transit is using CSS3 animations which are baked into the browser and jQuery animations are simply changing css styles at a high rate of speed. All in all, I love this library and think it is an excellent alternative to most of the other animation methods out there currently.