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}
      }
  • 相关阅读:
    js"发送验证码"倒计时效果!
    input:button按钮文字换行
    最新jQuery引用google地址外部文件(jquery 1.2.6至jquery1.7.2)
    overflow:hidden ie6,7失效
    ZeroClipboard支持IE,firefox,Chrome复制到剪贴板(转)
    js取url参数
    弹出层高度不限垂直居中 兼容ie ff chrome
    jQuery 2.0将不再支持IE 6/7/8
    CSS: IE中的BUG之marginbottom失效
    inputSuggest邮箱提示自动补全js插件
  • 原文地址:https://www.cnblogs.com/bm20131123/p/12463504.html
Copyright © 2011-2022 走看看