220927 transition.html

2022. 9. 27. 12:20·Skills/CSS3, SCSS
<!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>transition</title>
    <style>
      * {margin: 0; padding: 0;}
      a {color: black; text-decoration: none;}
      li {list-style: none;}

      /*-------- box01 --------*/
      .box01 {
        width: 200px; height: 200px;
        border: 1px solid black;
        background-color: yellow;
        transition-property: background-color;
        transition-duration: 0.5s;
      }
      .box01:hover {background-color: red;}

      /*-------- box02 --------*/
      .box02 {
        width: 200px; height: 200px;
        border: 1px solid black;
        transition-property: height;
        transition-duration: 0.3s;
        transition-delay: 0.1s;
      }
      .box02:hover {
        height: 400px;
      }
    </style>
  </head>
  <body>
    <div class="box01">color</div>
    <div class="box02">height</div>
  </body>
</html>

'Skills > CSS3, SCSS' 카테고리의 다른 글

220928 transition_box.html  (0) 2022.09.28
220927 transition_fulldown.html  (0) 2022.09.27
220927 transform.html  (0) 2022.09.27
220926 naver_news.html  (0) 2022.09.26
220926 ani_03.html  (0) 2022.09.26
'Skills/CSS3, SCSS' 카테고리의 다른 글
  • 220928 transition_box.html
  • 220927 transition_fulldown.html
  • 220927 transform.html
  • 220926 naver_news.html
개발자 윤구나
개발자 윤구나
개발 공부를 하고 있습니다. Let's go!
  • 개발자 윤구나
    이것은 무엇?????
    개발자 윤구나
    • 분류 전체보기
      • Skills
        • Java
        • Database
        • Flutter, Dart
        • JavaScript
        • React
        • HTML5
        • CSS3, SCSS
        • PHP
        • C#
        • Unity
        • Algorithm
        • GIT·GitHub
        • 그 외
      • Book Review
      • IT NEWS
      • 설계
      • 자기 계발
  • 블로그 메뉴

    • 홈
    • 방명록
  • 인기 글

  • 최근 글

  • 최근 댓글

  • 전체
    오늘
    어제
  • hELLO· Designed By정상우.v4.10.3
개발자 윤구나
220927 transition.html
상단으로

티스토리툴바