css实现dna旋转动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现dna旋转动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
html, body {
width: 100%;
height: 100%;
background-color: #292929;
padding-top: 50px;
}
*, *:before, *:after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.strain {
width: 155px;
height: 1px;
background-color: #dbdbdb;
position: relative;
margin: 0px auto;
margin-top: 28px;
margin-bottom: 28px;
-webkit-animation-name: rotate-strain;
animation-name: rotate-strain;
-webkit-animation-duration: 1.7s;
animation-duration: 1.7s;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-play-state: running;
animation-play-state: running;
}
.strain:before {
content: "";
display: block;
position: absolute;
width: 18px;
height: 18px;
border-radius: 50%;
background-color: #13b6e2;
left: 0;
margin-top: -9px;
margin-left: -9px;
-webkit-animation-name: strain-size-left;
animation-name: strain-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0