transition
Örnek

<!DOCTYPE html>
<html>
<head>
<style>
div.buna {
width: 100px;
height: 100px;
background: red;
transition: all 2s;
margin-right:10px;
}
div.buna:hover {
height:500px;
}
</style>
</head>
<body>
<h1>The transition Property</h1>
<p>Hover over the div element below, to see the transition effect:</p>
<div style="height:500px; background-color:#f5f5f5; display:flex; align-items:end;">
<div class="buna" style="background:yellow"></div>
<div class="buna" style="background:blue"></div>
<div class="buna" style="background:grey"></div>
<div class="buna" style="background:black"></div>
<div class="buna"></div>
</div>
</body>
</html>
<html>
<head>
<style>
div.buna {
width: 100px;
height: 100px;
background: red;
transition: all 2s;
margin-right:10px;
}
div.buna:hover {
height:500px;
}
</style>
</head>
<body>
<h1>The transition Property</h1>
<p>Hover over the div element below, to see the transition effect:</p>
<div style="height:500px; background-color:#f5f5f5; display:flex; align-items:end;">
<div class="buna" style="background:yellow"></div>
<div class="buna" style="background:blue"></div>
<div class="buna" style="background:grey"></div>
<div class="buna" style="background:black"></div>
<div class="buna"></div>
</div>
</body>
</html>