한주를 마무리 하기전 정신력이 떨어져가는 날이다.
실습 내용은 엘리스의 과제여서 아주 쉬운 것으로 대신 탑재한다.
keyframes를 적용 하여 우로 10도 좌로 10도 왕복하는 이미지 완성
```
Document ```<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.box1 {
width: 300px;
height: 300px;
background-color: red;
animation: rotation 1500ms linear infinite alternate;
}
@keyframes rotation {
from {
transform: rotate(-10deg);
}
to {
transform: rotate(10deg);
}
}
</style>
</head>
<body>
<div class="box1"></div>
</body>
</html>
브라우저 너비가 800px이상일때
브라우저 너비가 320px 이상 800px 이하일때
media를 사용하여 변경한다
```
Document ```<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.media {
width: 500px;
height: 500px;
background-color: yellow;
}
@media (min-width: 320px) and (max-width: 800px) {
.media {
width: 100px;
height: 100px;
background-color: blue;
}
}
</style>
</head>
<body>
<div class="media"></div>
</body>
</html>