I have recently been studying up a ton on CSS3, and I’ve made a design just for fun with a ton of unnecessary features and effects. Here it is:
http://wendyhenrichs.com/could/
If you take a look at my navigation bar at the top, you’ll notice that when you hover over a link, it moves 7 pixels to the right in a smooth, transition motion.
But then notice, when your take your mouse off the link, it will just immediately hop back into its original position.
Is there any way to make it fade back into position in a smooth motion, as it moved before?
Yes there’s a way.. give it a
positionto transition back toyou already have the transition on the default
aso just set thenav as relative position to back to 0; it will needposition: relativetoo, so if you just putposition: relativeon the default state, then you just manipulate the left co-ordinate on the hover stateWorking Example: HERE