Use CSS3 transition to give action to elements in your website, such as change in colour, sizes, and more!
The basic syntax for creating a css transition is "property", "duration", and "type".
If we take the following example (transition:color 1s ease-in;) - the property we are changing is the color, over a duration of 1 second and using the ease-in method). See below some examples of how this can be implemented into your projects.
Mouse over this example paragraph to see it fade to a new colour using a basic CSS3 transition.
This is a good technique for creating mouseover actions for links and buttons.
Mouse over this example paragraph to see it rotate -4 degrees using a transform transition.
This can be used to create a more interactive website, such as menu items or image gallery.