Assignment029j3a2

CSS transitions alllow you to change elelemt property balues from on evalue to another smoothly over a set period of time. You can easily utilize transitons using a :hover pseudo-class.


In the examples below, all the boxes (divs) are utilizing a :hover pseudo-class. The white box does not have a transition, but the rest do. Notice how you can use transitions to change the state of the element over time.


oving the mouse over the div (:hover), allows the transition to display the new properties. Notice that transitions can also be applied to links.


When using transitions, you can chose to use long notation or short notation. Here are the properties you can use for long notation:


If you prefer short notation, use transition

Links

Yahoo
Google
background-color
background-color (with a delay)
height
border-radius
transfrom rotate
tranform-scale
transform-translate (with a delay)

jisid-s570@chusd.org