<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
div{
background-color: red;
width: 100px;
height: 100px;
margin: 20px;
transition-property: all;
transition-duration: 3s;
}
.box1{
transition-timing-function: ease;
}
.box2{
transition-timing-function: linear;
}
.box3{
transition-timing-function: ease-in;
}
.box4{
transition-timing-function: ease-out;
}
.box5{
transition-timing-function: ease-in-out;
}
.box1:hover, .box2:hover, .box3:hover, .box4:hover, .box5:hover{
background-color: yellow;
border-radius: 50%;
}
</style>
</head>
<body>
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
<div class="box4"></div>
<div class="box5"></div>
</body>
</html>
댓글 영역