.heart { animation: beat 0.01s infinite; } @keyframes beat { 30% { transform: scale(1.4); } 100% { transform: scale(1); } // transform改变形态 beat 控制 key ...
分类:
其他好文 时间:
2020-07-12 12:23:24
阅读次数:
57
1.通过关联的class样式属性写好css样式 .anim-order{ animation-duration: 500ms; animation-name: addInOrder; animation-timing-function: ease-in-out; } .anim-car{ anima ...
分类:
其他好文 时间:
2020-07-10 15:08:02
阅读次数:
65
创建剪切动画 对于剪切动画,使用clip-path代替width/height,避免DOM重排导致性能过低。 .animate { width: 200px; height: 200px; background: #000; animation: 1s clip; } @keyframes clip ...
分类:
Web程序 时间:
2020-07-10 00:09:31
阅读次数:
86
animation动画使用 图片上下循环跳转 html代码: <div class="siteicon"> <img src="./siteicon.png" alt=""> <p>点击跳转</p> </div> css代码: @keyframes icon{ 0%{ opacity: 0.8; t ...
分类:
Web程序 时间:
2020-07-07 22:11:21
阅读次数:
159
创建剪切动画 对于剪切动画,使用clip-path代替width/height,避免DOM重排导致性能过低。 .animate { width: 200px; height: 200px; background: #000; animation: 1s clip; } @keyframes clip ...
分类:
Web程序 时间:
2020-07-05 00:17:01
阅读次数:
77
一、发送自定义广播 1.广播主要分为两种: 标准广播和有序广播 2.发送标准广播 先定义一个广播接收器来接收广播 package com.example.broadcasttest2; import android.content.BroadcastReceiver; import android. ...
分类:
移动开发 时间:
2020-07-03 00:50:41
阅读次数:
92
一、 元素溢出处理 属性值【说明】 overflow visible 【默认值 不裁剪内容】 hidden 【裁剪内容 裁剪的那部分不可见】 scroll 【无论内容是否超越范围,都将显示滚动条。】 scroll="no" 【无论内容是否超越范围,都将不显示滚动条。】 auto 【当内容超出范围时, ...
分类:
Web程序 时间:
2020-06-29 13:11:18
阅读次数:
107
##selector 是安卓资源文件的一种,它可以使按钮等实现不同状态下的不同UI,不用在代码中实现,而使用方式有两种,一种在color文件下 创建.xml可以使按钮等字体在不同状态下的变化,其二是在drawable中创建资源文件,可以设置背景等,下面的<shape标签可以绘制不同种图形,<grad ...
分类:
移动开发 时间:
2020-06-29 00:38:40
阅读次数:
69
局部引用示例: 1.首先,先进行下载安装 命令: npm install --save swiper 2.在局部页面中引入(一般用于首页) 注:vue项目哦// html代码 写的有点过于简陋,不过主要就是这个格式 <div class="swiper-container"> <div class= ...
分类:
其他好文 时间:
2020-06-28 18:58:37
阅读次数:
80
import numpy from matplotlib import pyplot from matplotlib import animation def update_points(num): point_ani.set_data(x[num],y[num]) #更新点的位置,将这里的(x[n ...
分类:
其他好文 时间:
2020-06-23 19:05:16
阅读次数:
90