댓글 검색 목록

[bootstrap] 애니메이션 glyphicon

페이지 정보

작성자 운영자 작성일 14-10-23 09:38 조회 5,235 댓글 0

부트스트랩에 기본 제공되는 glyphicon을 움직여 봅시다..

 

 

 

 

html:

        <button class="btn btn-default"><i class="glyphicon glyphicon-repeat gly-spin"></i></button>
        <button class="btn btn-default"><i class="glyphicon glyphicon-cog gly-spin"></i></button>
        <button class="btn btn-default"><i class="glyphicon glyphicon-th-large gly-spin"></i></button>
        <button class="btn btn-default"><i class="glyphicon glyphicon-refresh gly-spin"></i></button>

 

css:

.gly-spin {

  -webkit-animation: spin 2s infinite linear;

  -moz-animation: spin 2s infinite linear;

  -o-animation: spin 2s infinite linear;

  animation: spin 2s infinite linear;

}

@-moz-keyframes spin {

  0% {

    -moz-transform: rotate(0deg);

  }

  100% {

    -moz-transform: rotate(359deg);

  }

}

@-webkit-keyframes spin {

  0% {

    -webkit-transform: rotate(0deg);

  }

  100% {

    -webkit-transform: rotate(359deg);

  }

}

@-o-keyframes spin {

  0% {

    -o-transform: rotate(0deg);

  }

  100% {

    -o-transform: rotate(359deg);

  }

}

@keyframes spin {

  0% {

    -webkit-transform: rotate(0deg);

    transform: rotate(0deg);

  }

  100% {

    -webkit-transform: rotate(359deg);

    transform: rotate(359deg);

  }

댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.