cs3s简单动画
来源:互联网 发布:飞豆打印软件注册码 编辑:程序博客网 时间:2024/06/08 09:35
<!DOCTYPEhtml>
<htmllang="en">
<head>
<metacharset="UTF-8">
<title>音乐</title>
<linkrel="stylesheet" type="text/css"href="css/head.css">
</head>
<body>
<divclass="muso">
</div>
<divclass="music">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</body>
</html>
.music{
width:400px;
height:150px;
margin: 0 auto;
margin-top:200px;
}
.music span{
width:9px;
height:100%;
background:pink;
display:inline-block;
border-radius:4px;
animation:code1.2s ease infinite;
}
.musicspan:nth-child(2){
animation-delay:0.2s;
}
.musicspan:nth-child(3){
animation-delay:0.4s;
}
.musicspan:nth-child(4){
animation-delay:0.6s;
}.musicspan:nth-child(5){
animation-delay:0.8s;
}
@keyframes code{
0%,100%{
height:40px;
background:pink;
}50%{
margin-top:-30px;
height: 60px;
background:#B8B1F4;
}
}
@keyframes muso{
form{
transform:rotate(0deg);
}
to{
transform:rotate(360deg);
}
}
.muso{
margin:0 auto;
width:250px;
height:250px;
border-radius:100%;
border-top:8pxsolid #F7C3C3;
border-left:8pxsolid #F7C3C3;
border-right:8pxsolid #B8B1F4;
border-bottom:8pxsolid #B8B1F4;
animation:muso2s linear 0s infinite;
}
.times p{
text-align:center;
margin-top:-91px;
font-family: '微软雅黑';
color:#6252F2;
}
<!DOCTYPEhtml>
<htmllang="en">
<head>
<metacharset="UTF-8">
<title>圆形钟动画</title>
<linkrel="stylesheet" type="text/css"href="css/index.css" />
</head>
<body>
<!-- 首先三个div,分别表示圆形,分钟,秒钟 -->
<div class="time">
<div class="minute">
<divclass="second"></div>
</div>
</div>
<divclass="hed"></div>
</body>
</html>
@keyframes minute{
form{
transform:rotate(0deg);
}
to{
transform:rotate(360deg);
}
}
@keyframes second{
form{
transform:rotate(0deg);
}
to{
transform:rotate(360deg);
}
}
/*设置圆形:宽高 居中 边框 定位 背景 border-radius*/
.time{
width:150px;
height:150px;
margin:0auto;
border-radius:60%;
position:relative;
border:3pxsolid pink;
background:pink;
margin-top:80px;
}
/*设置分钟:长方形 宽 高 背景 定位 animation name duration秒数linear匀速 ease慢速*/
.minute{
width:4px;
height:45px;
background:#fff;
position:absolute;
left:71px;
top:39px;
animation:minute 3600s linear 0s infinite;
transform-origin:5px bottom;
}
.second{
width:4px;
height:74px;
background:#fff;
position: absolute;
left:-1px;
top:-30px;
animation: second 60s linear 0s infinite;
transform-origin: 3px bottom;
}
/*第二个形状*/
.hed{
width:280px;
height:280px;
margin:0auto;
border-radius:30%;
position:relative;
border:5pxsolid pink;
background:url(../images/zjk.PNG);
margin-top:100px;
}
.hed:hover{
width:300px;
background:pink;
animation:width5s linear 0s infinite;
}
- cs3s简单动画
- 简单动画
- 简单动画
- 简单动画
- 简单动画
- 简单动画
- 简单动画
- 简单动画
- 简单制作水波动画
- [VB.NET]简单动画
- Applet 实现简单动画
- sl 简单 样式 动画
- WPF简单动画
- android 动画简单介绍
- 编写简单的动画
- 窗口的简单动画
- IOS简单动画
- 几个简单动画代码
- SQL 函数的使用
- 游戏角色
- spring boot hibernate
- tensorflow 学习笔记11 最简单的循环神经网络(RNN)
- TRIE(字典树)模板
- cs3s简单动画
- 【Sonar代码质量检测工具】
- hdu3308 线段树 区间合并,单点跟新
- jQuery源码之DOM操作
- 图片懒加载库echo.js源码学习
- 图像批量读取(opencv C++ python)
- 使用阿里云火车票查询接口案例——CSDN博客
- Java反射机制(动态获取类中的信息)
- 测试--坦克大战