transition:all 1s ease 1s
Ease
1, Ease: (gradually slow) default value
2, Linear: (Constant speed)
3, Ease-in: (acceleration)
4, Ease-out: (deceleration)
5, Ease-in-out: (Acceleration and deceleration)
6, Cubic-bezier
Such as:
<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>Document</title> <styletype= "Text/css"> *{margin:0;padding:0;}. Icon_down{width:0;Height:0;Border-left:20px Solid Transparent;Border-right:20px Solid Transparent;Border-top:20px Solid #B03939;transition:all . 1s ease-in 0ms;margin:50px Auto;cursor:Pointer; }. Icon_down:hover{Transform:Rotate (180deg);} </style></Head><Body> <Divclass= "Icon_down"></Div></Body></HTML>
: the mouse rotates 180 degrees,
Example 2:
Place the mouse pointer over the DIV element, and its width will gradually change from 100px to 300px:
Div{width:100px;transition:width 2s;-moz-transition:width 2s;/* Firefox 4 */-webkit-transition:width 2s;/* Safari and C Hrome */-o-transition:width 2s; /* Opera */}
:
After the mouse has passed
CSS3 Transition Properties-gradual slow/constant speed/acceleration/deceleration/acceleration and deceleration