css里的动画animate应用
来源:互联网 发布:阿拉伯人 性 知乎 编辑:程序博客网 时间:2024/06/06 15:37
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>animate</title>
<style type="text/css">
.circle {
width: 200px;
height: 200px;
border-radius: 50%;
border:15px solid #eee;
border-left-color:pink;
border-bottom-color:pink;
animation: rotate 3s linear 0s infinite;
}
@-webkit-keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* 网易音乐符 */
.music li {
width: 5px;
height: 50px;
background-color: #000;
list-style: none;
display: inline-block;
}
.wy1 {
animation: scale 1s ease 0.2s infinite;
}
.wy2 {
animation: scale 1s ease 0.4s infinite;
}
.wy3 {
animation: scale 1s ease 0.6s infinite;
}
.wy4 {
animation: scale 1s ease 0.8s infinite;
}
.wy5 {
animation: scale 1s ease 1s infinite;
}
@-webkit-keyframes scale{
from {
transform: scale(0.1);
}
to {
transform: scale(0.5);
}
}
.translate {
position: relative;
}
.translate li {
width: 175px;
height: 173px;
display: inline-block;
list-style: none;
position: absolute;
left: 10px;
}
.img1 {
background: url("iconlist_1.png") 1px;
animation: img1 3s linear 0s 1;
}
.img2 {
background: url("iconlist_1.png") -173px;
animation: img2 3s linear 0s 1;
}
.img3 {
background: url("iconlist_1.png") -347px;
animation: img3 3s linear 0s 1;
}
.img4 {
background: url("iconlist_1.png") -521px;
animation: img4 3s linear 0s 1;
}
.img5 {
background: url("iconlist_1.png") -695px;
animation: img5 3s linear 0s 1;
}
@-webkit-keyframes img1{
from {
transform: translate(0px);
}
to {
transform: translate(200px);
}
}
@-webkit-keyframes img2 {
from {
transform: translate(0px);
}
to {
transform: translate(400px);
}
}
@-webkit-keyframes img3 {
from {
transform: translate(0px);
}
to {
transform: translate(600px);
}
}
@-webkit-keyframes img4 {
from {
transform: translate(0px);
}
to {
transform: translate(800px);
}
}
@-webkit-keyframes img5 {
from {
transform: translate(0px);
}
to {
transform: translate(1000px);
}
}
</style>
</head>
<body>
<div class="circle"></div>
<div class="music">
<ul>
<li class="wy1"></li>
<li class="wy2"></li>
<li class="wy3"></li>
<li class="wy4"></li>
<li class="wy5"></li>
</ul>
</div>
<div class="translate">
<ul>
<li class="img1"></li>
<li class="img2"></li>
<li class="img3"></li>
<li class="img4"></li>
<li class="img5"></li>
</ul>
</div>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>animate</title>
<style type="text/css">
.circle {
width: 200px;
height: 200px;
border-radius: 50%;
border:15px solid #eee;
border-left-color:pink;
border-bottom-color:pink;
animation: rotate 3s linear 0s infinite;
}
@-webkit-keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* 网易音乐符 */
.music li {
width: 5px;
height: 50px;
background-color: #000;
list-style: none;
display: inline-block;
}
.wy1 {
animation: scale 1s ease 0.2s infinite;
}
.wy2 {
animation: scale 1s ease 0.4s infinite;
}
.wy3 {
animation: scale 1s ease 0.6s infinite;
}
.wy4 {
animation: scale 1s ease 0.8s infinite;
}
.wy5 {
animation: scale 1s ease 1s infinite;
}
@-webkit-keyframes scale{
from {
transform: scale(0.1);
}
to {
transform: scale(0.5);
}
}
.translate {
position: relative;
}
.translate li {
width: 175px;
height: 173px;
display: inline-block;
list-style: none;
position: absolute;
left: 10px;
}
.img1 {
background: url("iconlist_1.png") 1px;
animation: img1 3s linear 0s 1;
}
.img2 {
background: url("iconlist_1.png") -173px;
animation: img2 3s linear 0s 1;
}
.img3 {
background: url("iconlist_1.png") -347px;
animation: img3 3s linear 0s 1;
}
.img4 {
background: url("iconlist_1.png") -521px;
animation: img4 3s linear 0s 1;
}
.img5 {
background: url("iconlist_1.png") -695px;
animation: img5 3s linear 0s 1;
}
@-webkit-keyframes img1{
from {
transform: translate(0px);
}
to {
transform: translate(200px);
}
}
@-webkit-keyframes img2 {
from {
transform: translate(0px);
}
to {
transform: translate(400px);
}
}
@-webkit-keyframes img3 {
from {
transform: translate(0px);
}
to {
transform: translate(600px);
}
}
@-webkit-keyframes img4 {
from {
transform: translate(0px);
}
to {
transform: translate(800px);
}
}
@-webkit-keyframes img5 {
from {
transform: translate(0px);
}
to {
transform: translate(1000px);
}
}
</style>
</head>
<body>
<div class="circle"></div>
<div class="music">
<ul>
<li class="wy1"></li>
<li class="wy2"></li>
<li class="wy3"></li>
<li class="wy4"></li>
<li class="wy5"></li>
</ul>
</div>
<div class="translate">
<ul>
<li class="img1"></li>
<li class="img2"></li>
<li class="img3"></li>
<li class="img4"></li>
<li class="img5"></li>
</ul>
</div>
</body>
</html>
阅读全文
0 0
- css里的动画animate应用
- Animate.css动画库的使用
- vue 和animate.css 的动画使用
- 动画库animate.css的用法
- animate.css 动画制作
- css3动画简介以及动画库animate.css的使用
- css3动画简介以及动画库animate.css的使用
- css3动画简介以及动画库animate.css的使用
- css3动画简介以及动画库animate.css的使用
- css3动画简介以及动画库animate.css的使用
- css3动画简介以及动画库animate.css的使用
- css3动画简介以及动画库animate.css的使用
- css3动画简介以及动画库animate.css的使用
- 使用swiper里的animate动画时出现的错误
- 用js实现类似jquery里的animate动画效果
- CSS3动画效果-animate.css
- animate.css css3动画工具
- animate.css CSS3动画库
- socket简介
- http://www.cnblogs.com/yjmyzz
- Springboot+Maven+swagger2.7集成开发
- Spring + mybaties + mysql + maven开发
- 使用git拉取线上
- css里的动画animate应用
- fatal error LNK1112: 模块计算机类型“X86”与目标计算机类型“x64”冲突——我的解决方案
- 关于ALUA详解
- 应用:udp聊天器
- pc端hover事件 移入pop间隔时间处理
- monkey基础学习
- (3)RxJava2+Retrofit2+OkHttp3系列(RxJava2-3)
- IP输入框-基于Jquery
- thinkphp+redis+队列