background preloader

Morf.js - CSS3 Transitions with custom easing functions

Morf.js - CSS3 Transitions with custom easing functions
Related:  CSS animation

Useful Links for Learning CSS @Keyframes Animation We started seeing experimentation and articles about CSS3 @keyframes animation in 2011, but back then support was limited to webkit browsers. As of mid 2011 Firefox 5 gained support, and we can expect the next incarnation of Internet Explorer (10) to also show support, so now is the perfect time to get to grips with the @keyframes syntax. This post rounds up 10 articles that explain how to use this cool CSS3 feature, each with examples and demos. Looking for the skinny on CSS3 animation? The W3 Schools website provides a basic overview of the @keyframes rule and the various properties available, complete with working examples. If you’re already familiar with the workings of CSS3 animation and just need a quick ‘cheat sheet’ or reminder definitely check out Chris Coyier’s overview page on CSS-Tricks. Richard Bradshaw has compiled an extremely useful collection of information about the various aspects of CSS3 animation.

A new micro clearfix hack The clearfix hack is a popular way to contain floats without resorting to using presentational markup. This article presents an update to the clearfix method that further reduces the amount of CSS required. Demo: Micro clearfix hack Known support: Firefox 3.5+, Safari 4+, Chrome, Opera 9+, IE 6+ The “micro clearfix” method is suitable for modern browsers and builds upon Thierry Koblentz’s “clearfix reloaded”, which introduced the use of both the :before and :after pseudo-elements. Here is the updated code (I’ve used a shorter class name too): This “micro clearfix” generates pseudo-elements and sets their display to table. Including the :before selector is not necessary to clear the floats, but it prevents top-margins from collapsing in modern browsers. It ensures visual consistency with other float containment techniques that create a new block formatting context, e.g., overflow:hiddenIt ensures visual consistency with IE 6/7 when zoom:1 is applied.

untitled Jump to progress the Jarallax.jumpToProgress method allows the user to animate the Jarallax animation to a position in the animation. This is a very handy method for navigation. To see it in action press one of the navigation buttons on top of the page. Example jarallax.jumpToProgress( 20, 2000, 30); In this example Jarallax animates to position 20 over 2000 milliseconds with 24 frames a second. Smooth scrollbar Some browsers smooth out the scrollbar when it is moved (like safari). Enabling the smoothed scrollbar will animate the current progress of the Jarallax animation to the scrollbar position. Example: var jarallax = new Jarallax(new ControllerScroll(true)); Clone animations In earlier versions of Jarallax every animation needs to be defined. When defining an animation with the addAnimation method, an animation sequence is returned. The first argument expects a selector, the second an object or array with the key modifications.

Animatable: One property, two values, endless possiblities box-shadow From: 0 0 black To: 0 150px 10px -50px rgba(0,0,0,.5) Author: @leaverou The guide to CSS animations for the web Have you been asked by your client, boss or designer to create some nice animations on the next web project? They say: “I have seen this cool effect on the other site, can you do something similar?” or “I have this idea for an animation, can you do it?” and you go: “Sure I can.” or “Hm, I don’t know…” Tip of the day: Never say “No, I can’t do it.” But there is so many options The situation could be a scary one, especially if it’s the first time you will be working with CSS or JavaScript animations. There’s too many options to choose from and too many questions to be answered. Luckily, you’ve come to the right place. Who is this guide for? This guide is aimed at a front-end web developers looking for a direction when it comes to web animations. This guide to CSS and JavaScript animations will show you the right options based on your skill level and will make your decision when selecting the right tools for animations much easier. 1. Practical use: Other resources: 2. CSS3 Animations libraries: 3.

CSS3 : animations visuelles avec Animate.css Dans ce tutoriel nous allons voir comment créer des animations visuelles attrayantes en CSS pour les utilisateurs grâce au projet Animate.css. Nous allons nous intéresser à plusieurs des plus populaires animations parmi les 53 que le projet propose, et ainsi proposer le code CSS correspondant à ces animations. Le projet Animate.css peut être téléchargé sur GitHub : Animate.css. Vous pouvez consulter la démonstration de Animate.css afin d'avoir un rendu dans un navigateur. L'animation « flash » permet d'afficher et de masquer un élément grâce à la propriété CSS opacity. Vous pouvez consulter la démonstration de l'animation « flash » pour avoir un aperçu du rendu dans un navigateur. Cette animation va créer un effet de tremblement en faisant bouger l'élément de gauche à droite. Vous pouvez consulter la démonstration de l'animation « shake » pour avoir un aperçu du rendu dans un navigateur. Cette animation fait rebondir votre élément HTML. Cette animation fait remuer votre élément HTML.

CSS3 linear gradients By Chris Mills Introduction For as long as we can remember, we have used colour gradients on the Web to brighten things up, and add class to designs. If you want to create a fantastic looking button, panel, gauge, progress bar or other UI feature, a gradient is the way to go. Up until now, we have always used repeated background images to create gradient effects. The CSS is simple, and creating a gradient using Photoshop, Fireworks, or another graphics tool is not hard. CSS3 comes to the rescue with the CSS Image Values and Replaced Content Module Level 3: part of this module defines CSS gradients, which allow us to create any gradients we want using only CSS. Note: Radial gradients are covered in the article CSS3 radial gradients. Creating gradients I have included some simple examples for you to play with in my linear gradients demo. To create a basic linear gradient, you need to provide a start point and an end point, like so: Varying the gradient angle Colour stops Transparency gradients

Slicebox - 3D Image Slider Creative Lifesaver Honest Entertainer Brave Astronaut Affectionate Decision Maker Faithful Investor Groundbreaking Artist Selfless Philantropist Example 4: Same like example example 3, with a higher disperse factor

miketucker/svg-verlet.js Animatable: One property, two values, endless possibilities border-width From: To: 75px Author: @leaverou

Related: