본문 바로가기

css

11장 마무리 문제 2

<!DOCTYPE html>
<html lang="ko">
<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>마무리 문제 2</title>
  <style>
    #container {
      width:200px;
      margin:30px auto;
    }

    img {
      border:1px solid #ccc;
      border-radius:50%;
      box-shadow:5px 5px 30px 2px #000;
      animation:rotateBear 2.5s infinite;
    }

    @keyframes rotateBear {
      from{transform: perspective(200px)  rotateY(0deg);}
      50% {transform: perspective(200px)  rotateY(-180deg);}
      to  {transform:perspective(200px)  rotateY(-360deg);}

    }
  </style>
</head>
<body>
<div id="container">
</div>
 
</body>
</html>