I’m making a mobile website and I’m using javascript to animate things around? Is this recommended or should I use CSS3 transitions?
If so how can I implement a simple CSS3 transition that will move divA down 20px when divA is clicked?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to use a combination of javascript and CSS. CSS for the animations and javascript to trigger them.
Take a look at this jQuery plugin: http://ricostacruz.com/jquery.transit/
I’ve been using it recently and it is very useful, especially for callbacks.
Hope that helps 🙂