• 如何让让图片一直做动画?


     

    1.360度一直旋转动画

    <img  class="rotate"  src="../circle.png"/>
    .rotate {
        transform: rotate(360deg);
        animation: rotation 3s linear infinite;
        -moz-animation: rotation 3s linear infinite;
        -webkit-animation: rotation 3s linear infinite;
        -o-animation: rotation 3s linear infinite;
    }
    @keyframes rotation {
        from {-webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
    }

    2.放大动画

    <img  class="ballon"  src="../circle.png"/>
    @keyframes scaleDraw { 
        0%{
            transform: scale(1);
            opacity:1;  
        }
        100% {
            transform: scale(1.3); 
            opacity:0.4;
        }
        
    }
    .ballon{
        animation-name: scaleDraw; 
        animation-timing-function: ease-in-out; 
        animation-iteration-count: infinite;  
        animation-duration: 2s; 
            
    }
  • 相关阅读:
    快速幂 快速乘法
    扩展欧几里得学习笔记
    求逆序数数目(树状数组+离散化)
    隐式图的遍历
    随机数生成
    推倒重来
    动态规划初步
    子集生成
    东大oj1155 等凹函数
    P1278 单词游戏
  • 原文地址:https://www.cnblogs.com/wx2019/p/11840128.html
Copyright © 2020-2023  润新知