zoukankan      html  css  js  c++  java
  • css 跑马灯

    html:

    <view class="in_scro">
      <view class="in_scrview">恭喜139******1用户约看特价房</view>
      <view class="in_scrview">恭喜139******1用户约看特价房</view>
      <view class="in_scrview">恭喜139******1用户约看特价房</view>
      <view class="in_scrview">恭喜139******1用户约看特价房</view>
      <view class="in_scrview">恭喜139******1用户约看特价房</view>
      <view class="in_scrview">恭喜139******1用户约看特价房</view>
    </view>

    css:

        /* 跑马灯 */
        .in_scro {
            height: 150px;
            width: 80%;
            margin: 15px auto;
            overflow: hidden;
        }
    
        .in_scrview {
            color: #000000;
            font-size: 15px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            animation: myMove 2s linear infinite;
            animation-fill-mode: forwards;
        }
    
        /*     .in_scrview:nth-child(even) {
            color: #686767;
            font-size: 16px;
        } */
    
        /*文字无缝滚动*/
        @keyframes myMove {
            0% {
                transform: translateY(0);
            }
    
            50% {
                transform: translateY(-30px);
            }
    
            100% {
                transform: translateY(-60px);
            }
        }
  • 相关阅读:
    hdu 1045 Fire Net
    hdu 1044 Collect More Jewels
    hdu 1043 Eight
    hdu 1042 N!
    hdu 1041 Computer Transformation
    hdu 1040 As Easy As A+B
    CI在ngnix的配置
    angularjs表单验证checkbox
    chrome浏览器跨域设置
    angularjs向后台传参,后台收不到数据
  • 原文地址:https://www.cnblogs.com/sxdpanda/p/13644939.html
Copyright © 2011-2022 走看看