The transition-timing-function
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="STYLESHEET"type="text/css"href="web.css">
<title>web design</title>
</head>
<body>
<h1>The transition-timing-function Property</h1>
<p>Hover over the div elements below, to see the different speed curves:
</p>
<div id="div1">linear</div><br>
<div id="div2">ease</div><br>
<div id="div3">ease-in</div><br>
<div id="div4">ease-out</div><br>
<div id="div5">ease-in-out</div>
</body>
</html>
CSS The transition-timing-function Style
div{
width:100px;
height: 100px;
background-color: red;
transition: width 2s;
}
.div1{
transition-timing-function:linear ;
}
.div2{
transition-timing-function:ease ;
}.div3{
transition-timing-function:ease-in ;
}.div4{
transition-timing-function:ease-out ;
}.div5{
transition-timing-function:ease-in-out ;
}
div:hover{
width:300px ;
}
No comments:
Post a Comment