Internet Explorer 11 wobbly CSS3 animation

后端 未结 1 386
终归单人心
终归单人心 2021-01-19 13:44

Please refer to this fiddle: http://jsfiddle.net/eQegA/3/

.spinner { width: 100px; height: 100px; bord
相关标签:
1条回答
  • 2021-01-19 14:01

    For what it's worth, it also occurs on other browsers. It has to do, how the border is drawn, it's not a perfect round. As far as I know, there isn't a quick fix for this. However you can draw the border as a background image.

    .spinner {
    display:block;
        width: 200px;
        height: 200px;
        border-radius: 100%;
        background-image:url(http://www.clipartbest.com/cliparts/9iR/RyK/9iRRyKLie.png);
        background-size:100%;
    
        -webkit-animation: application-loading-rotate 1s;
        animation: application-loading-rotate 1s;
        -webkit-animation-iteration-count: infinite;
        animation-iteration-count: infinite;
        -webkit-animation-timing-function: linear;
        animation-timing-function: linear;
    }
    
    @-webkit-keyframes application-loading-rotate {
      from {
        -webkit-transform: rotate(0deg);
      }
      to {
        -webkit-transform: rotate(360deg);
      }
    }
    @keyframes application-loading-rotate {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }
    

    See: http://jsfiddle.net/eQegA/26/

    0 讨论(0)
提交回复
热议问题