![]() ![]() JQuery’s animate method works in any (sane) browser, provided you are using the 1.X version of the library. Overall support for both desktop and mobile browsers is comprehensive. ![]() Since our solution will be based on transformations, our browser compatibility will be limited to those that support either 2D transformations or 3D transformations.Īll modern browsers will support 3D transforms and several of the older legacy browser such as Internet Explorer 9 and Opera 11.5 will support 2D transforms. I would take the following factors into account: Browser Compatibility I will be using transformations via CSS, however there are always variables to consider depending on your situation. jQuery (read JavaScript) allows you to animate things that CSS doesn’t (such as the scroll position, or an element’s attributes), whilst CSS animations can be very attractive for developers who prefer putting all of their animation and presentation logic in the CSS layer. There are pros and cons to each approach. We might want to fade elements in, or provide an interesting transformation and these would only make sense when the user can actually view them. The main reason we would want to trigger animations on scroll, is so that they activate just as the user scrolls an element into view. We will also use jQuery to detect when the elements are visible and to add/remove the appropriate classes.įor those who want to see examples of this in action, you can jump straight to the demos. These animations will be created using CSS transforms and CSS transitions. Today I will be outlining a technique that you can adapt to your web projects – triggering animations when scrolling into a pre-defined region. With modern sites providing a greater deal of interactivity, it’s becoming increasingly expected that even simple websites will offer some level of animation / movement to engage their visitors. Creating movement is great way to provide an interesting and interactive experience for your viewers.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |