css3动画特效
2017-11-22 00:00
274 查看
<style>
.two .container {
position: absolute;
top: 199px;
left: 50%;
margin-left: -111px;
width: 222px;
height: 222px;
}
.two .orbit {
width: 2px;
height: 2px;
background: #F6B42C;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
z-index: 9;
}
.two .orbit-1 {
width: 4px;
height: 4px;
-webkit-animation: orbit-1 5s linear infinite;
animation: orbit-1 5s linear infinite;
}
.two .orbit-2 {
width: 5px;
height: 5px;
-webkit-animation: orbit-2 10s linear infinite;
animation: orbit-2 10s linear infinite;
}
.two .orbit-3 {
width: 3px;
height: 3px;
-webkit-animation: orbit-3 15s linear infinite;
animation: orbit-3 15s linear infinite;
}
.two .orbit-4 {
-webkit-animation: orbit-4 20s linear infinite;
animation: orbit-4 20s linear infinite;
}
.two .orbit-5 {
width: 6px;
height: 6px;
-webkit-animation: orbit-5 25s linear infinite;
animation: orbit-5 25s linear infinite;
}
.two .orbit-6 {
-webkit-animation: orbit-6 30s linear infinite;
animation: orbit-6 30s linear infinite;
}
@keyframes orbit-1 {
0% {
-webkit-transform: rotate(0deg) translateX(-95px) rotate(0deg);
transform: rotate(0deg) translateX(-95px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(-95px) rotate(-360deg);
transform: rotate(360deg) translateX(-95px) rotate(-360deg);
}
}
@keyframes orbit-2 {
0% {
-webkit-transform: rotate(0deg) translateX(-110px) rotate(0deg);
transform: rotate(0deg) translateX(-110px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(-110px) rotate(-360deg);
transform: rotate(360deg) translateX(-110px) rotate(-360deg);
}
}
@keyframes orbit-3 {
0% {
-webkit-transform: rotate(0deg) translateX(95px) rotate(0deg);
transform: rotate(0deg) translateX(95px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(95px) rotate(-360deg);
transform: rotate(360deg) translateX(95px) rotate(-360deg);
}
}
@keyframes orbit-4 {
0% {
-webkit-transform: rotate(0deg) translateX(110px) rotate(0deg);
transform: rotate(0deg) translateX(110px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(110px) rotate(-360deg);
transform: rotate(360deg) translateX(110px) rotate(-360deg);
}
}
@keyframes orbit-5 {
0% {
-webkit-transform: rotate(0deg) translateX(125px) rotate(0deg);
transform: rotate(0deg) translateX(125px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(125px) rotate(-360deg);
transform: rotate(360deg) translateX(125px) rotate(-360deg);
}
}
@keyframes orbit-6 {
0% {
-webkit-transform: rotate(0deg) translateX(140px) rotate(0deg);
transform: rotate(0deg) translateX(140px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(140px) rotate(-360deg);
transform: rotate(360deg) translateX(140px) rotate(-360deg);
}
}
.two .circle {
position: absolute;
bottom: -80px;
left: -30px;
width: 200px;
height: 200px;
border-radius: 50%;
background: #d9d9d9;
opacity: .8;
animation: trail 10s linear infinite;
}
@keyframes trail {
0% {
-webkit-transform: rotate(0deg) translateX(60px) rotate(0deg);
transform: rotate(0deg) translateX(60px) rotate(0deg);
}
25% {
-webkit-transform: rotate(0deg) translateY(60px) rotate(0deg);
transform: rotate(0deg) translateY(60px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(60px) rotate(-360deg);
transform: rotate(360deg) translateX(60px) rotate(-360deg);
}
}
.two .star {
position: absolute;
left: 0;
top: 50px;
width: 1px;
height: 1px;
background-color: white;
transform: rotate(30deg);
-webkit-animation: shooting 5s linear infinite;
animation: shooting 5s linear infinite;
}
.two .star:before {
content: "";
position: absolute;
width: 100px;
height: 1px;
right: 1px;
top: 0;
background: -webkit-linear-gradient(left, transparent 0%, rgba(255, 255, 255, 0.4) 100%);
background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.4) 100%);
}
.two .star-2 {
top: 200px;
-webkit-animation: shootings 8s 1s linear infinite;
animation: shootings 8s 1s linear infinite;
}
@keyframes shooting {
0% {
left: -100px;
}
100% {
top: 350px;
left: calc(100% + 100px);
}
}
@keyframes shootings {
0% {
left: -100px;
}
100% {
top: 500px;
left: calc(100% + 100px);
}
}
</style>
<body ontouchstart>
<img class="logo" src="./images/group1.png" alt="图片加载失败" />
<div class="weui-footer">
<p class="weui-footer__text">big data health consultance</p>
</div>
<div class="container">
<div class="orbit orbit-1"></div>
<div class="orbit orbit-2"></div>
<div class="orbit orbit-3"></div>
<div class="orbit orbit-4"></div>
<div class="orbit orbit-5"></div>
<div class="orbit orbit-6"></div>
</div>
<div class="circle"></div>
<div class="star star-1"></div>
<div class="star star-2"></div>
</body>
.two .container {
position: absolute;
top: 199px;
left: 50%;
margin-left: -111px;
width: 222px;
height: 222px;
}
.two .orbit {
width: 2px;
height: 2px;
background: #F6B42C;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
z-index: 9;
}
.two .orbit-1 {
width: 4px;
height: 4px;
-webkit-animation: orbit-1 5s linear infinite;
animation: orbit-1 5s linear infinite;
}
.two .orbit-2 {
width: 5px;
height: 5px;
-webkit-animation: orbit-2 10s linear infinite;
animation: orbit-2 10s linear infinite;
}
.two .orbit-3 {
width: 3px;
height: 3px;
-webkit-animation: orbit-3 15s linear infinite;
animation: orbit-3 15s linear infinite;
}
.two .orbit-4 {
-webkit-animation: orbit-4 20s linear infinite;
animation: orbit-4 20s linear infinite;
}
.two .orbit-5 {
width: 6px;
height: 6px;
-webkit-animation: orbit-5 25s linear infinite;
animation: orbit-5 25s linear infinite;
}
.two .orbit-6 {
-webkit-animation: orbit-6 30s linear infinite;
animation: orbit-6 30s linear infinite;
}
@keyframes orbit-1 {
0% {
-webkit-transform: rotate(0deg) translateX(-95px) rotate(0deg);
transform: rotate(0deg) translateX(-95px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(-95px) rotate(-360deg);
transform: rotate(360deg) translateX(-95px) rotate(-360deg);
}
}
@keyframes orbit-2 {
0% {
-webkit-transform: rotate(0deg) translateX(-110px) rotate(0deg);
transform: rotate(0deg) translateX(-110px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(-110px) rotate(-360deg);
transform: rotate(360deg) translateX(-110px) rotate(-360deg);
}
}
@keyframes orbit-3 {
0% {
-webkit-transform: rotate(0deg) translateX(95px) rotate(0deg);
transform: rotate(0deg) translateX(95px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(95px) rotate(-360deg);
transform: rotate(360deg) translateX(95px) rotate(-360deg);
}
}
@keyframes orbit-4 {
0% {
-webkit-transform: rotate(0deg) translateX(110px) rotate(0deg);
transform: rotate(0deg) translateX(110px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(110px) rotate(-360deg);
transform: rotate(360deg) translateX(110px) rotate(-360deg);
}
}
@keyframes orbit-5 {
0% {
-webkit-transform: rotate(0deg) translateX(125px) rotate(0deg);
transform: rotate(0deg) translateX(125px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(125px) rotate(-360deg);
transform: rotate(360deg) translateX(125px) rotate(-360deg);
}
}
@keyframes orbit-6 {
0% {
-webkit-transform: rotate(0deg) translateX(140px) rotate(0deg);
transform: rotate(0deg) translateX(140px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(140px) rotate(-360deg);
transform: rotate(360deg) translateX(140px) rotate(-360deg);
}
}
.two .circle {
position: absolute;
bottom: -80px;
left: -30px;
width: 200px;
height: 200px;
border-radius: 50%;
background: #d9d9d9;
opacity: .8;
animation: trail 10s linear infinite;
}
@keyframes trail {
0% {
-webkit-transform: rotate(0deg) translateX(60px) rotate(0deg);
transform: rotate(0deg) translateX(60px) rotate(0deg);
}
25% {
-webkit-transform: rotate(0deg) translateY(60px) rotate(0deg);
transform: rotate(0deg) translateY(60px) rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg) translateX(60px) rotate(-360deg);
transform: rotate(360deg) translateX(60px) rotate(-360deg);
}
}
.two .star {
position: absolute;
left: 0;
top: 50px;
width: 1px;
height: 1px;
background-color: white;
transform: rotate(30deg);
-webkit-animation: shooting 5s linear infinite;
animation: shooting 5s linear infinite;
}
.two .star:before {
content: "";
position: absolute;
width: 100px;
height: 1px;
right: 1px;
top: 0;
background: -webkit-linear-gradient(left, transparent 0%, rgba(255, 255, 255, 0.4) 100%);
background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.4) 100%);
}
.two .star-2 {
top: 200px;
-webkit-animation: shootings 8s 1s linear infinite;
animation: shootings 8s 1s linear infinite;
}
@keyframes shooting {
0% {
left: -100px;
}
100% {
top: 350px;
left: calc(100% + 100px);
}
}
@keyframes shootings {
0% {
left: -100px;
}
100% {
top: 500px;
left: calc(100% + 100px);
}
}
</style>
<body ontouchstart>
<img class="logo" src="./images/group1.png" alt="图片加载失败" />
<div class="weui-footer">
<p class="weui-footer__text">big data health consultance</p>
</div>
<div class="container">
<div class="orbit orbit-1"></div>
<div class="orbit orbit-2"></div>
<div class="orbit orbit-3"></div>
<div class="orbit orbit-4"></div>
<div class="orbit orbit-5"></div>
<div class="orbit orbit-6"></div>
</div>
<div class="circle"></div>
<div class="star star-1"></div>
<div class="star star-2"></div>
</body>
相关文章推荐
- 9款超绚丽的HTML5/CSS3应用和动画特效
- 5种漂亮的纯CSS3动画按钮特效
- 纯CSS3炫酷3D折叠面板动画特效
- 纯css3开关按钮动画特效插件
- Css3动画效果,超简单的loveHeart,爱心特效,程序员表白必备
- 4种纯CSS3超酷页面切换过渡动画特效
- CSS3动画特效
- css3的动画特效--元素旋转(transition,animation)
- 分享7款顶级的CSS3动画特效
- 一款jquery和css3实现的卡通人物动画特效
- 复习:css3核心属性——选择器、盒子模型、多列布局、响应式布局、动画特效
- CSS3实现Loading动画特效
- css3实现的4种动画特效按钮
- 纯CSS3超酷3D旋转立方体动画特效
- 9款超绚丽的HTML5/CSS3应用和动画特效
- 动感的CSS3 Loading加载文字动画特效
- jQuery css3鼠标悬停图片显示遮罩层动画特效
- 整合53种纯CSS3炫酷loading指示器动画特效
- CSS3实现带动画、阴影的表单提示特效
- CSS3特效之动画animation