CSS3 Transitions and Transforms Examples

Using CSS3 Transitions and Transforms can be very funny. Today we’ll use webkit transitions.

The webkit browsers (Google Chome and Safari) can use the CSS3 Transitions and Transforms.

I made some examples for you 😉


You can use:

transition-property : What property should animate. (e.g., opacity).
transition-duration: How long the transition should be (e.g., 1s)
transition-timing-function: The timing function for the transition (e.g., linear, ease-in).
transition: A shorthand for all properties.

Webkit Transform

The Webkit transform can be used to move objects and transform objects. Check out the list of options below:

scale, scaleX, scaleY

Scale an object around the origin. (e.g., 1, 2, 3).

Use negative if you want to flip the object (e.g., -1,-2,-3).


Rotate an object around the origin. (e.g., 90deg, 189deg).

translate, translateX, translateY

Translate an object. These functions take lengths or percentages as arguments.

Percentages are relative to the border box of the object.

skew, skewX, skewY

Skew an object. These functions take CSS angles.

Full Code


One Response to “CSS3 Transitions and Transforms Examples”

  1. tanebum January 6, 2012 at 9:48 am #


Leave a Reply

Add <code> Some Code </code> by using this tags.