2022 summer-vacation HTML&CSS seminar: week3, transition, transform

가오리·2022년 11월 19일
0

seminar

목록 보기
9/15
post-thumbnail
post-custom-banner


  • index.html
    <!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>COIN</title>
        <link rel="stylesheet" href="./style.css" />
      </head>
      <body>
        <div><img src="./coin.png" alt="" /></div>
      </body>
    </html>
  • style.css
    body {
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    div {
      transition: background-color 1s ease-in-out;
      border: 3px solid black;
    }
    img {
      width: 300px;
      height: 300px;
      transition: 3s ease-in-out;
    }
    img:hover {
      transform: rotateX(360deg) scale(1.5);
    }
profile
가오리의 코딩일기
post-custom-banner

0개의 댓글