??? taim?]

function

function


??? [?f??k?n] ??? [?f??k??n]

CSS ?? ??? ?? ?? ???

??: transition-timing-function ??? ?? ??? ?? ??? ?????. ? ??? ???? ?? ??? ??? ?? ??? ??? ? ????.

??: ???? ??? ??: ??|ease|ease-in|ease-out|ease-in-out|cubic-bezier(n,n,n,n);

??: ?? ??? ??(cubic-bezier(0,0,1,1)? ??)? ???? ??? ?? ??? ?????. ???? ??? ????? ?? ????? ??? ??? ?? ??? ?????(cubic-bezier(0.25,0.1,0.25,1)). Ease-in? ?? ??(cubic-bezier(0.42,0,1,1)? ??)?? ???? ?? ??? ?????. Ease-out? ?? ??(cubic-bezier(0,0,0.58,1)? ??)? ??? ?? ??? ?????. Ease-in-out? ?? ??(cubic-bezier(0.42,0,0.58,1)? ??)? ???? ??? ?? ??? ?????. ??-???(n,n,n,n) ??-??? ??? ???? ?? ?????. ??? ?? 0?? 1 ?????.

??: Internet Explorer 10, Firefox, Opera ? Chrome? ?? ??? ?? ??? ?????. Safari? ?? -webkit-transition-timing-function ??? ?????. ??: Internet Explorer 9 ? ?? ????? ?? ??? ?? ??? ???? ????.

CSS ?? ??? ?? ?? ?

<!DOCTYPE html>
<html>
<head>
<style> 
div
{
width:100px;
height:100px;
background:blue;
transition:width 2s;
transition-timing-function:linear;
/* Firefox 4 */
-moz-transition:width 2s;
-moz-transition-timing-function:linear;
/* Safari and Chrome */
-webkit-transition:width 2s;
-webkit-transition-timing-function:linear;
/* Opera */
-o-transition:width 2s;
-o-transition-timing-function:linear;
}
div:hover
{
width:300px;
}
</style>
</head>
<body>
<div></div>
<p>請把鼠標指針移動到藍色的 div 元素上,就可以看到過渡效果。</p>
<p><b>注釋:</b>本例在 Internet Explorer 中無效。</p>
</body>
</html>

???? ?? ?

??? ????? ??? "???? ??" ??? ?????