【问题标题】:Lollipop style loading spinner by css棒棒糖风格的 CSS 加载微调器
【发布时间】:2016-05-26 12:55:00
【问题描述】:

我想在我的网页中创建一个加载微调器,它与 android Lollipop 加载微调器一样...有什么方法可以通过 css 创建它吗?

【问题讨论】:

    标签: css css-animations animate.css


    【解决方案1】:

    查看this网址

    .circle-loader {
        margin-left: 48%;  
        fill: transparent;
        stroke: #009688;
        stroke-width: 5;
        animation: dash 2s ease infinite,rotate 2s linear infinite;
    }
    
    @keyframes dash {
        0% {
            stroke-dasharray: 1,95;
            stroke-dashoffset: 0;
        }
        50% {
            stroke-dasharray: 85,95;
            stroke-dashoffset: -25;
        }
        100% {
            stroke-dasharray: 85,95;
            stroke-dashoffset: -93;
        }
    }
    
    @keyframes rotate {
        0% {transform: rotate(0deg); }
        100% {transform: rotate(360deg); }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-15
      • 2016-12-26
      • 2015-08-12
      • 1970-01-01
      相关资源
      最近更新 更多