zoukankan      html  css  js  c++  java
  • css3实现小程序的动画

    <view class="biground" >
        <block wx:for="{{Namelist}}" wx:key="">
          <text class="user-motto" style='font-size: 80%;'>送餐报酬</text>
          <text class="user-motto" style='font-size: 180%;'>{{item.money}}元</text>
          <text class="user-motto" style='font-size: 120%;'>点击送餐</text>
          <text class="user-motto" style='font-size: 60%;'>{{item.sex}}</text>
        </block>
        </view>
     
    .biground{
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      310rpx;
      height:310rpx;
      border-radius:50%;
      margin-bottom: 30rpx;
      margin-top: 500rpx;
      animation: max_size 1s infinite;
      -webkit-animation: max_size 4s infinite;
      color: #fff;
      box-shadow: 0 0 60rpx rgba(255,216,216,1);
      position: relative;
      animation-direction: alternate-reverse;
    }
    .biground text{
      color: #fff;
    }
    @keyframes max_size
    {
      0% { 300rpx; height: 300rpx; font-size: 28; left: 0; bottom: 0rpx; }
      100% { 320rpx; height: 320rpx; font-size: 32rpx; left: 0; bottom: 30rpx; }
    }
    @-webkit-keyframes max_size
    {
      50% { 400rpx; height: 400rpx; }
    }
     
    重点:css3的animation还可实现小程序的文字跑马灯
  • 相关阅读:
    访问修饰符、封装、继承
    面向对象与类
    内置对象
    三级联动 控件及JS简单使用
    asp。net简单的登录(不完整)
    asp。net:html的表单元素:
    ASP.Net简介及IIS服务器及Repeater
    用户控件
    登陆,激活,权限
    timer控件,简单通讯
  • 原文地址:https://www.cnblogs.com/Annely/p/10669917.html
Copyright © 2011-2022 走看看