"CSS striped progress"의 두 판 사이의 차이

1번째 줄: 1번째 줄:
==개요==
==개요==
;CSS striped progres
;CSS striped progres
<source lang='html'>
<style>
  .progress {
    overflow: hidden;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: .25rem;
  }
  .progress-bar {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #fff;
    transition: width 1s ease;
    background-color: #007bff;
    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;
    animation: progress-bar-stripes 1s linear infinite;
  }
  @keyframes progress-bar-stripes {
    to { background-position: 0 31px; }
  }
</style>
<div class="progress">
  <div class="progress-bar" style="width: 70%">진행중입니다</div>
</div>
</source>
<jsfiddle>04gh37ym</jsffidle>


<source lang='html'>
<source lang='html'>

2020년 9월 17일 (목) 03:13 판

1 개요

CSS striped progres
<style>
  .progress {
    overflow: hidden;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: .25rem;
  }
  .progress-bar {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #fff;
    transition: width 1s ease;
    background-color: #007bff;
    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;
    animation: progress-bar-stripes 1s linear infinite;
  }
  @keyframes progress-bar-stripes {
    to { background-position: 0 31px; }
  }
</style>
<div class="progress">
  <div class="progress-bar" style="width: 70%">진행중입니다</div>
</div>

2 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}