inflearn logo
강의

Khóa học

Chia sẻ kiến thức

HTML+CSS+JS Portfolio thực tế (Mùa 1)

Thực hành Publishing Thực tế 02 Sử dụng Lớp giả Kiểm tra Thứ tự (Thanh tiến trình kỹ năng Animation, Delay)

delay 적용 안됨

135

nah8304282

7 câu hỏi đã được viết

1

딜레이가 적용이 안되는데 코드에서 어떤 부분이 잘못된 것일까요?? animation-fill-mode와 animation-delay 모두 다 주었습니다.

<!DOCTYPE html>
<html lang="ko">
<head>
  <meta charset="UTF-8">
  <title></title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
  <style>
    body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; 
    }
    .skill-progress {
        background-color: #333;
        width: 500px;
        border-radius: 10px;
        color : white;
        text-align: center;
        padding: 10px;
    }
    .item {
        margin-bottom: 35px;
    }
    .item p{
        overflow: hidden;
        margin-bottom: 5px;
    }
    .item span:nth-child(1) {
        float: left;
    }
    .item span:nth-child(2) {
        float: right;
    }
    .progress {
        border : 1px solid aquamarine;
        padding: 5px;
        border-radius: 3px;
    }
    .progress-level {
        background: linear-gradient(to right, #fc6c85 0%, gold    100%);
        height: 7px;
        animation: ani 1s;
        animation-fill-mode: both;
    }
    @keyframes ani {
        0% {
            width: 0;
        }
    }
    .skill-progress .item:nth-of-type(1) .progress-level {
        animation-delay: 0s;
    }
    .skill-progress .item:nth-of-type(2) .progress-level {
        animation-delay: 0.2s;
    }
    .skill-progress .item:nth-of-type(3) .progress-level {
        animation-delay: 0.4s;
    }
    .skill-progress .item:nth-of-type(4) .progress-level {
        animation-delay: 0.6s;
    }
    .skill-progress .item:nth-of-type(5) .progress-level {
        animation-delay: 0.8s;
    }
  </style>
</head>

<body>

  <div class="skill-progress">
    <h1>SOFTWARE SKILLS</h1>
    <div class="item">
      <p>
        <span>HTML5</span><span>90%</span>
      </p>
      <div class="progress">
        <div class="progress-level" style="width: 90%"></div>
      </div>
      <p>
        <span>CSS3</span><span>80%</span>
      </p>
      <div class="progress">
        <div class="progress-level" style="width: 80%"></div>
      </div>
      <p>
        <span>jQuery</span><span>65%</span>
      </p>
      <div class="progress">
        <div class="progress-level" style="width: 65%"></div>
      </div>
      <p>
        <span>Photoshop</span><span>70</span>
      </p>
      <div class="progress">
        <div class="progress-level" style="width: 70%"></div>
      </div>
      <p>
        <span>illustrator</span><span>82%</span>
      </p>
      <div class="progress">
        <div class="progress-level" style="width: 82%"></div>
      </div>
    </div>
  </div>
  
  <script src="script\jquery-1.12.4.js"></script>
  <script src="script\custom.js"></script>

</body>
</html>

HTML/CSS jquery

Câu trả lời 1

0

codingworks

.item이 여러개 있는게 아니라 .progress가 여러개 있으므로 nth-of-type을 .progress에 주어야 합니다. 아래 2번째처럼 해주면 됩니다.

.skill-progress .item:nth-of-type(1) .progress-level {

animation-delay: 0s;

}

.skill-progress .item .progress:nth-of-type(1) .progress-level {

animation-delay: 0s;

}

class 값 한 번에 부여하는법

2

80

1

@media에서의 flex-direction: column으로 세로배치 관련 질문드립니다.

1

69

1

div#css-checker-widget의 해결방

1

60

2

input의 포커스되었을때 검정선이 사라지지 않아요

0

79

2

강의듣는법

1

74

1

아코디언 만들기 100%이하의 화면으로 보았을때

1

68

2

input checked 질문합니다.

0

77

1

Bracket Pair Colorizer - 비주얼 스튜디오

1

140

2

Part 1 영상 안나옵니다

1

90

1

제이쿼리 작동이 안됩니다

1

199

3

강의 내용 질문있습니다.

1

121

2

일정 부분만 주석하는 방법

1

211

2

폰트어썸

1

134

2

인접선택자에 대한 질문드립니다!

1

129

2

rotateY(360deg)가 적용이 안됩니다!

1

186

2

세로이동할때 height값

1

139

2

폰트어썸이 안되요..

1

487

2

화면 정중앙에 오게끔 할수있나요?

1

170

1

어코디언 네비게이션 중

1

127

1

라이브서버 문제

1

230

2

넷플릭스 어코디언 예제 질문

1

105

1

이번 강의에선 display flex가 무조건 적으로 필요한건가요 ?

1

158

1

active 관련 질문

1

147

2

checked 가상클래스에서 transform 속성을 사용할 때 관련 질문입니다.

1

148

1