css3中动画功能
来源:互联网 发布:数字滤波算法快速滤波 编辑:程序博客网 时间:2024/04/29 19:12
1.transition 属性
<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>transition属性</title> <style> .div1{ width: 200px; height: 200px; background-color: chartreuse; -webkit-transition: all 1s linear 2s; /*transition :property duration timing-function delay property 的三哥类型 a.none没有属性会获得过度效果 b. all 所有属性都将获得 c.用户自定义,用逗号隔开 ———————————————— duration 属性 a. 代表需要完成效果过度需要的时间 ———————————————— timing-function 动画加载的的速率 ———————————————— delay 变换时间的延迟 */ } .div1:hover{ background-color: aqua; width: 300px; } </style></head><body><h1>transition属性</h1><div class="div1"></div><div class="div2"></div><div class="div3"></div><div class="div4"></div></body></html>
—————delay参数——————————————————————————————————————————————————————————————————————
2 animation 的用法
/* 代码*/
<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>animation属性</title> <style> div{ width: 200px; height: 100px; background-color: aqua; } /* animation 使用方法 @-webkit-keyframes 关键帧合集名称{ 创建关键帧的代码 0%-100%{ 本关键帧的样式 } } */ @-webkit-keyframes mycolor { 0%{ background-color: aqua; } 10%{ background-color: chartreuse; } 80%{ background-color: antiquewhite; } 100%{ background-color: blueviolet; } } div:hover{ -webkit-animation-name:mycolor; -webkit-animation-duration: 5s; -webkit-animation-timing-function: linear; -webkit-animation-iteration-count: infinite; } </style></head><body><h1>animation属性</h1><div></div></body></html>
0 0
- css3中动画功能
- CSS3 实现动画功能
- CSS3中的动画功能
- CSS3动画之一:Transitions功能
- CSS3——动画功能
- css3之动画功能介绍
- css3加载中动画
- CSS3中动画变换
- CSS3中新增功能
- CSS3动画之二:Animations功能
- CSS3中的动画功能之笔记
- css3 动画中display none
- css3中动画兼容版
- CSS3中的动画功能-transition功能与animations功能
- CSS3制作加载中loading动画效果
- css3中停止动画的方法
- 实用CSS3实现旋转加载中动画
- CSS3实现“正在加载中”动画
- kafka入门:简介、使用场景、设计原理、主要配置及集群搭建(转)
- 正确使用 const,static,extern
- Linux驱动中completion接口浅析(wait_for_complete例子,很好)
- Detours实现劫持
- KafkaOffsetMonitor
- css3中动画功能
- java基础--去除List中重复的元素
- 二分查找算法变体在实际项目中的应用
- [Elasticsearch] 索引管理 (五) - 默认映射,重索引,索引别名
- HDOJ 2031 进制转换
- opencv2 反向投影直方图检测特定图像内容
- Redis 3.0 cluster 集群环境搭建
- Druid连接池 一个设置 removeAbandonedTimeout
- ListView的简单使用