반응형
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Transformations</title>
<style>
.box{
width: 100px;
height: 100px;
background: red;
transition: transform .5s ease-in-out;
}
.box:hover{
transform: rotate(1turn) scale(.5, .5);
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>
https://developer.mozilla.org/en-US/docs/Web/CSS/transform
반응형
'2020 > CSS' 카테고리의 다른 글
css media queries (0) | 2020.02.16 |
---|---|
css animation @keyframes (0) | 2020.02.16 |
CSS Transition (0) | 2020.02.16 |
css states(hover, active, focus, visited) (0) | 2020.02.16 |
PSEUDO SELECTOR (0) | 2020.02.16 |