CSS striped progress 편집하기

경고: 로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다. 로그인하거나 계정을 생성하면 편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.

편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.

최신판 당신의 편집
2번째 줄: 2번째 줄:
;CSS striped progres
;CSS striped progres


==예시 1==
<source lang='html'>
<syntaxhighlight lang='html' run>
<style>
  .prog {
    width: 200px;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #fff;
    transition: width 1s ease;
    background-image: linear-gradient(45deg,#fff2 25%,#fff0 25%,#fff0 50%,#fff2 50%,#fff2 75%,#fff0 75%,#fff0);
    background-size: 1rem 1rem;
    border-radius: 5px;
  }
  .prog1 {
    background-color: #c70;
    animation: stripes-left 1s linear infinite;
  }
  .prog2 {
    background-color: #07c;
    animation: stripes-right 1s linear infinite;
  }
  @keyframes stripes-left { to { background-position: 0 31px; } }
  @keyframes stripes-right { to { background-position: 31px 0; } }
</style>
 
<span class="prog prog1">대기중입니다</span>
<br>
<span class="prog prog2">진행중입니다</span>
</syntaxhighlight>
 
==예시 2==
<syntaxhighlight lang='html' run>
<style>
<style>
   .progress {
   .progress {
48번째 줄: 16번째 줄:
     color: #fff;
     color: #fff;
     transition: width 1s ease;
     transition: width 1s ease;
     background-color: #07f;
     background-color: #007bff;
     background-image: linear-gradient(45deg,#fff2 25%,#fff0 25%,#fff0 50%,#fff2 50%,#fff2 75%,#fff0 75%,#fff0);
     background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
     background-size: 1rem 1rem;
     background-size: 1rem 1rem;
     animation: stripes 1s linear infinite;
     animation: progress-bar-stripes 1s linear infinite;
   }
   }
   @keyframes stripes {
   @keyframes progress-bar-stripes {
     to { background-position: 0 31px; }
     to { background-position: 0 31px; }
   }
   }
60번째 줄: 28번째 줄:
   <div class="progress-bar" style="width: 70%">진행중입니다</div>
   <div class="progress-bar" style="width: 70%">진행중입니다</div>
</div>
</div>
</syntaxhighlight>
</source>
<jsfiddle>04gh37ym</jsfiddle>


==예시 3==
<source lang='html'>
<syntaxhighlight lang='html' run>
<style>
<style>
   .meter {
   .meter {
98번째 줄: 66번째 줄:
</style>
</style>
<div class="meter">이발소<i></i></div>
<div class="meter">이발소<i></i></div>
</syntaxhighlight>
</source>
 
<jsfiddle>s41mkftn</jsfiddle>
==같이 보기==
* [[CSS linear indicator]]


==참고==
==참고==

제타위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 제타위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요!

취소 편집 도움말 (새 창에서 열림)