zoukankan      html  css  js  c++  java
  • 文字上下翻滚效果

    <div class="data-box rescue1">
            <p class="count">{{dataObj.firstRescure}}</p>           
            <p class="text">一级救援</p>   
          </div> 
          <div class="data-box rescue2">
            <p class="count">{{dataObj.secondRescure}}</p>           
            <p class="text">二级救援</p>   
          </div> 
          <div class="data-box rescue3">
            <p class="count">{{dataObj.thirdRescure}}</p>           
            <p class="text">三级救援</p>   
          </div> 
     
    .rescue1 {
      /* animation: rescue1Anmi 8s linear infinite; */
    }
    .rescue2 {
      top: 100px;
      /* animation: rescue2Anmi 8s 1s linear infinite; */
    }
    .rescue3 {
      top: 200px;
      /* animation: rescue3Anmi 8s  2s linear infinite; */
    }
    /* 救援动画 */
      @keyframes rescue1Anmi{
        0% { top: 0;opacity: 1}
        20% { top: -70px;opacity: 1}
        40% { top: -140px ;opacity: 0}
        60% { top: -210px ;opacity: 0}
        80% { top: 70px;opacity: 0}
        100%{ top: 0;opacity: 1}
      }
      @keyframes rescue2Anmi{ 
        0% { top: 70px;opacity: 1}
        20% { top: 0;opacity: 1}
        40% { top: -70px ;opacity: 1}
        60% { top: -140px ;opacity: 0}
        80% { top: 140px;opacity: 0}
        100%{ top: 70px;opacity: 1}
      }
      @keyframes rescue3Anmi{
        0% { top: 140px;opacity: 0}
        20% { top: 70px;opacity: 1}
        40% { top: 0 ;opacity: 1}
        60% { top: -70px ;opacity: 1}
        65% { top: -90px ;opacity: 0}
        80% { top: 210px;opacity: 0}
        100%{ top: 140px;opacity: 0}
      }
  • 相关阅读:
    hdu 1698
    ACM起步要点总结(转哈工大)
    RANSAC
    Android 颜色渲染(十) ComposeShader组合渲染
    java过滤html标签函数
    Objective-C ,ios,iphone开发基础:picker控件详解与使用,(实现省市的二级联动)
    简单的三方登录SDK示例,Android Activity之间数据的传递
    搜索引擎日志分析
    继续过中等难度的题目
    包圈圈的题目
  • 原文地址:https://www.cnblogs.com/bm20131123/p/12463504.html
Copyright © 2011-2022 走看看