Issue making Bootstrap3 icon spin

前端 未结 7 2127
离开以前
离开以前 2021-02-03 17:59

Inspired by Fontawesome, I\'m trying to make a spinning icon with bootstrap3. It\'s easily achieve via CSS3 transition and transform. Problem is the icon does not not rotate aro

相关标签:
7条回答
  • 2021-02-03 18:30

    Hope this might help someone using font-awesome.

    Just try this.

    <span class="sync-state pull-right" style="display: none;">
        <i class="fa fa-refresh fa-spin"></i> synching..
    </span>
    

    Then on your javascript just get the element by class onclick or on hover which ever works best for you.

    $(".sync-state").fadeIn(); 
    

    After event action you can

    $(".sync-state").fadeOut();
    

    Hope this help. Jquery & Font-awesome

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