CSS3 | CSS3实现云雾缭绕动画效果
Posted 酷学编程
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS3 | CSS3实现云雾缭绕动画效果相关的知识,希望对你有一定的参考价值。
今天我们来分享一款纯CSS3实现的动画特效,是基于CSS3的云雾动画效果~
先让我们一起看看效果是怎么样的
是不是很好看呀~~快收藏下面的源码吧~
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>纯CSS3实现云雾缭绕动画效果DEMO演示</title>
<style>
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}
</style>
<style>
html, body {
overflow: hidden;
background: #3e6fa3;
}
.wrapper {
position: absolute;
top: 50%;
left: 50%;
z-index: 2;
-moz-perspective: 500px;
-webkit-perspective: 500px;
perspective: 500px;
}
i {
display: block;
position: absolute;
width: 8px;
height: 8px;
border-radius: 8px;
opacity: 0;
background: rgba(255, 255, 255, 0.5);
box-shadow: 0px 0px 10px white;
animation-name: spin;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
i:nth-child(1) {
-moz-transform: rotate(11.6129deg) translate3d(80px, 0, 0);
-ms-transform: rotate(11.6129deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(11.6129deg) translate3d(80px, 0, 0);
transform: rotate(11.6129deg) translate3d(80px, 0, 0);
animation-delay: 0.04839s;
}
i:nth-child(2) {
-moz-transform: rotate(23.22581deg) translate3d(80px, 0, 0);
-ms-transform: rotate(23.22581deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(23.22581deg) translate3d(80px, 0, 0);
transform: rotate(23.22581deg) translate3d(80px, 0, 0);
animation-delay: 0.09677s;
}
i:nth-child(3) {
-moz-transform: rotate(34.83871deg) translate3d(80px, 0, 0);
-ms-transform: rotate(34.83871deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(34.83871deg) translate3d(80px, 0, 0);
transform: rotate(34.83871deg) translate3d(80px, 0, 0);
animation-delay: 0.14516s;
}
i:nth-child(4) {
-moz-transform: rotate(46.45161deg) translate3d(80px, 0, 0);
-ms-transform: rotate(46.45161deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(46.45161deg) translate3d(80px, 0, 0);
transform: rotate(46.45161deg) translate3d(80px, 0, 0);
animation-delay: 0.19355s;
}
i:nth-child(5) {
-moz-transform: rotate(58.06452deg) translate3d(80px, 0, 0);
-ms-transform: rotate(58.06452deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(58.06452deg) translate3d(80px, 0, 0);
transform: rotate(58.06452deg) translate3d(80px, 0, 0);
animation-delay: 0.24194s;
}
i:nth-child(6) {
-moz-transform: rotate(69.67742deg) translate3d(80px, 0, 0);
-ms-transform: rotate(69.67742deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(69.67742deg) translate3d(80px, 0, 0);
transform: rotate(69.67742deg) translate3d(80px, 0, 0);
animation-delay: 0.29032s;
}
i:nth-child(7) {
-moz-transform: rotate(81.29032deg) translate3d(80px, 0, 0);
-ms-transform: rotate(81.29032deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(81.29032deg) translate3d(80px, 0, 0);
transform: rotate(81.29032deg) translate3d(80px, 0, 0);
animation-delay: 0.33871s;
}
i:nth-child(8) {
-moz-transform: rotate(92.90323deg) translate3d(80px, 0, 0);
-ms-transform: rotate(92.90323deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(92.90323deg) translate3d(80px, 0, 0);
transform: rotate(92.90323deg) translate3d(80px, 0, 0);
animation-delay: 0.3871s;
}
i:nth-child(9) {
-moz-transform: rotate(104.51613deg) translate3d(80px, 0, 0);
-ms-transform: rotate(104.51613deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(104.51613deg) translate3d(80px, 0, 0);
transform: rotate(104.51613deg) translate3d(80px, 0, 0);
animation-delay: 0.43548s;
}
i:nth-child(10) {
-moz-transform: rotate(116.12903deg) translate3d(80px, 0, 0);
-ms-transform: rotate(116.12903deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(116.12903deg) translate3d(80px, 0, 0);
transform: rotate(116.12903deg) translate3d(80px, 0, 0);
animation-delay: 0.48387s;
}
i:nth-child(11) {
-moz-transform: rotate(127.74194deg) translate3d(80px, 0, 0);
-ms-transform: rotate(127.74194deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(127.74194deg) translate3d(80px, 0, 0);
transform: rotate(127.74194deg) translate3d(80px, 0, 0);
animation-delay: 0.53226s;
}
i:nth-child(12) {
-moz-transform: rotate(139.35484deg) translate3d(80px, 0, 0);
-ms-transform: rotate(139.35484deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(139.35484deg) translate3d(80px, 0, 0);
transform: rotate(139.35484deg) translate3d(80px, 0, 0);
animation-delay: 0.58065s;
}
i:nth-child(13) {
-moz-transform: rotate(150.96774deg) translate3d(80px, 0, 0);
-ms-transform: rotate(150.96774deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(150.96774deg) translate3d(80px, 0, 0);
transform: rotate(150.96774deg) translate3d(80px, 0, 0);
animation-delay: 0.62903s;
}
i:nth-child(14) {
-moz-transform: rotate(162.58065deg) translate3d(80px, 0, 0);
-ms-transform: rotate(162.58065deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(162.58065deg) translate3d(80px, 0, 0);
transform: rotate(162.58065deg) translate3d(80px, 0, 0);
animation-delay: 0.67742s;
}
i:nth-child(15) {
-moz-transform: rotate(174.19355deg) translate3d(80px, 0, 0);
-ms-transform: rotate(174.19355deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(174.19355deg) translate3d(80px, 0, 0);
transform: rotate(174.19355deg) translate3d(80px, 0, 0);
animation-delay: 0.72581s;
}
i:nth-child(16) {
-moz-transform: rotate(185.80645deg) translate3d(80px, 0, 0);
-ms-transform: rotate(185.80645deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(185.80645deg) translate3d(80px, 0, 0);
transform: rotate(185.80645deg) translate3d(80px, 0, 0);
animation-delay: 0.77419s;
}
i:nth-child(17) {
-moz-transform: rotate(197.41935deg) translate3d(80px, 0, 0);
-ms-transform: rotate(197.41935deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(197.41935deg) translate3d(80px, 0, 0);
transform: rotate(197.41935deg) translate3d(80px, 0, 0);
animation-delay: 0.82258s;
}
i:nth-child(18) {
-moz-transform: rotate(209.03226deg) translate3d(80px, 0, 0);
-ms-transform: rotate(209.03226deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(209.03226deg) translate3d(80px, 0, 0);
transform: rotate(209.03226deg) translate3d(80px, 0, 0);
animation-delay: 0.87097s;
}
i:nth-child(19) {
-moz-transform: rotate(220.64516deg) translate3d(80px, 0, 0);
-ms-transform: rotate(220.64516deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(220.64516deg) translate3d(80px, 0, 0);
transform: rotate(220.64516deg) translate3d(80px, 0, 0);
animation-delay: 0.91935s;
}
i:nth-child(20) {
-moz-transform: rotate(232.25806deg) translate3d(80px, 0, 0);
-ms-transform: rotate(232.25806deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(232.25806deg) translate3d(80px, 0, 0);
transform: rotate(232.25806deg) translate3d(80px, 0, 0);
animation-delay: 0.96774s;
}
i:nth-child(21) {
-moz-transform: rotate(243.87097deg) translate3d(80px, 0, 0);
-ms-transform: rotate(243.87097deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(243.87097deg) translate3d(80px, 0, 0);
transform: rotate(243.87097deg) translate3d(80px, 0, 0);
animation-delay: 1.01613s;
}
i:nth-child(22) {
-moz-transform: rotate(255.48387deg) translate3d(80px, 0, 0);
-ms-transform: rotate(255.48387deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(255.48387deg) translate3d(80px, 0, 0);
transform: rotate(255.48387deg) translate3d(80px, 0, 0);
animation-delay: 1.06452s;
}
i:nth-child(23) {
-moz-transform: rotate(267.09677deg) translate3d(80px, 0, 0);
-ms-transform: rotate(267.09677deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(267.09677deg) translate3d(80px, 0, 0);
transform: rotate(267.09677deg) translate3d(80px, 0, 0);
animation-delay: 1.1129s;
}
i:nth-child(24) {
-moz-transform: rotate(278.70968deg) translate3d(80px, 0, 0);
-ms-transform: rotate(278.70968deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(278.70968deg) translate3d(80px, 0, 0);
transform: rotate(278.70968deg) translate3d(80px, 0, 0);
animation-delay: 1.16129s;
}
i:nth-child(25) {
-moz-transform: rotate(290.32258deg) translate3d(80px, 0, 0);
-ms-transform: rotate(290.32258deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(290.32258deg) translate3d(80px, 0, 0);
transform: rotate(290.32258deg) translate3d(80px, 0, 0);
animation-delay: 1.20968s;
}
i:nth-child(26) {
-moz-transform: rotate(301.93548deg) translate3d(80px, 0, 0);
-ms-transform: rotate(301.93548deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(301.93548deg) translate3d(80px, 0, 0);
transform: rotate(301.93548deg) translate3d(80px, 0, 0);
animation-delay: 1.25806s;
}
i:nth-child(27) {
-moz-transform: rotate(313.54839deg) translate3d(80px, 0, 0);
-ms-transform: rotate(313.54839deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(313.54839deg) translate3d(80px, 0, 0);
transform: rotate(313.54839deg) translate3d(80px, 0, 0);
animation-delay: 1.30645s;
}
i:nth-child(28) {
-moz-transform: rotate(325.16129deg) translate3d(80px, 0, 0);
-ms-transform: rotate(325.16129deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(325.16129deg) translate3d(80px, 0, 0);
transform: rotate(325.16129deg) translate3d(80px, 0, 0);
animation-delay: 1.35484s;
}
i:nth-child(29) {
-moz-transform: rotate(336.77419deg) translate3d(80px, 0, 0);
-ms-transform: rotate(336.77419deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(336.77419deg) translate3d(80px, 0, 0);
transform: rotate(336.77419deg) translate3d(80px, 0, 0);
animation-delay: 1.40323s;
}
i:nth-child(30) {
-moz-transform: rotate(348.3871deg) translate3d(80px, 0, 0);
-ms-transform: rotate(348.3871deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(348.3871deg) translate3d(80px, 0, 0);
transform: rotate(348.3871deg) translate3d(80px, 0, 0);
animation-delay: 1.45161s;
}
i:nth-child(31) {
-moz-transform: rotate(360deg) translate3d(80px, 0, 0);
-ms-transform: rotate(360deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(360deg) translate3d(80px, 0, 0);
transform: rotate(360deg) translate3d(80px, 0, 0);
animation-delay: 1.5s;
}
i:nth-child(32) {
-moz-transform: rotate(371.6129deg) translate3d(80px, 0, 0);
-ms-transform: rotate(371.6129deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(371.6129deg) translate3d(80px, 0, 0);
transform: rotate(371.6129deg) translate3d(80px, 0, 0);
animation-delay: 1.54839s;
}
i:nth-child(33) {
-moz-transform: rotate(383.22581deg) translate3d(80px, 0, 0);
-ms-transform: rotate(383.22581deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(383.22581deg) translate3d(80px, 0, 0);
transform: rotate(383.22581deg) translate3d(80px, 0, 0);
animation-delay: 1.59677s;
}
i:nth-child(34) {
-moz-transform: rotate(394.83871deg) translate3d(80px, 0, 0);
-ms-transform: rotate(394.83871deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(394.83871deg) translate3d(80px, 0, 0);
transform: rotate(394.83871deg) translate3d(80px, 0, 0);
animation-delay: 1.64516s;
}
i:nth-child(35) {
-moz-transform: rotate(406.45161deg) translate3d(80px, 0, 0);
-ms-transform: rotate(406.45161deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(406.45161deg) translate3d(80px, 0, 0);
transform: rotate(406.45161deg) translate3d(80px, 0, 0);
animation-delay: 1.69355s;
}
i:nth-child(36) {
-moz-transform: rotate(418.06452deg) translate3d(80px, 0, 0);
-ms-transform: rotate(418.06452deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(418.06452deg) translate3d(80px, 0, 0);
transform: rotate(418.06452deg) translate3d(80px, 0, 0);
animation-delay: 1.74194s;
}
i:nth-child(37) {
-moz-transform: rotate(429.67742deg) translate3d(80px, 0, 0);
-ms-transform: rotate(429.67742deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(429.67742deg) translate3d(80px, 0, 0);
transform: rotate(429.67742deg) translate3d(80px, 0, 0);
animation-delay: 1.79032s;
}
i:nth-child(38) {
-moz-transform: rotate(441.29032deg) translate3d(80px, 0, 0);
-ms-transform: rotate(441.29032deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(441.29032deg) translate3d(80px, 0, 0);
transform: rotate(441.29032deg) translate3d(80px, 0, 0);
animation-delay: 1.83871s;
}
i:nth-child(39) {
-moz-transform: rotate(452.90323deg) translate3d(80px, 0, 0);
-ms-transform: rotate(452.90323deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(452.90323deg) translate3d(80px, 0, 0);
transform: rotate(452.90323deg) translate3d(80px, 0, 0);
animation-delay: 1.8871s;
}
i:nth-child(40) {
-moz-transform: rotate(464.51613deg) translate3d(80px, 0, 0);
-ms-transform: rotate(464.51613deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(464.51613deg) translate3d(80px, 0, 0);
transform: rotate(464.51613deg) translate3d(80px, 0, 0);
animation-delay: 1.93548s;
}
i:nth-child(41) {
-moz-transform: rotate(476.12903deg) translate3d(80px, 0, 0);
-ms-transform: rotate(476.12903deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(476.12903deg) translate3d(80px, 0, 0);
transform: rotate(476.12903deg) translate3d(80px, 0, 0);
animation-delay: 1.98387s;
}
i:nth-child(42) {
-moz-transform: rotate(487.74194deg) translate3d(80px, 0, 0);
-ms-transform: rotate(487.74194deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(487.74194deg) translate3d(80px, 0, 0);
transform: rotate(487.74194deg) translate3d(80px, 0, 0);
animation-delay: 2.03226s;
}
i:nth-child(43) {
-moz-transform: rotate(499.35484deg) translate3d(80px, 0, 0);
-ms-transform: rotate(499.35484deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(499.35484deg) translate3d(80px, 0, 0);
transform: rotate(499.35484deg) translate3d(80px, 0, 0);
animation-delay: 2.08065s;
}
i:nth-child(44) {
-moz-transform: rotate(510.96774deg) translate3d(80px, 0, 0);
-ms-transform: rotate(510.96774deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(510.96774deg) translate3d(80px, 0, 0);
transform: rotate(510.96774deg) translate3d(80px, 0, 0);
animation-delay: 2.12903s;
}
i:nth-child(45) {
-moz-transform: rotate(522.58065deg) translate3d(80px, 0, 0);
-ms-transform: rotate(522.58065deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(522.58065deg) translate3d(80px, 0, 0);
transform: rotate(522.58065deg) translate3d(80px, 0, 0);
animation-delay: 2.17742s;
}
i:nth-child(46) {
-moz-transform: rotate(534.19355deg) translate3d(80px, 0, 0);
-ms-transform: rotate(534.19355deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(534.19355deg) translate3d(80px, 0, 0);
transform: rotate(534.19355deg) translate3d(80px, 0, 0);
animation-delay: 2.22581s;
}
i:nth-child(47) {
-moz-transform: rotate(545.80645deg) translate3d(80px, 0, 0);
-ms-transform: rotate(545.80645deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(545.80645deg) translate3d(80px, 0, 0);
transform: rotate(545.80645deg) translate3d(80px, 0, 0);
animation-delay: 2.27419s;
}
i:nth-child(48) {
-moz-transform: rotate(557.41935deg) translate3d(80px, 0, 0);
-ms-transform: rotate(557.41935deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(557.41935deg) translate3d(80px, 0, 0);
transform: rotate(557.41935deg) translate3d(80px, 0, 0);
animation-delay: 2.32258s;
}
i:nth-child(49) {
-moz-transform: rotate(569.03226deg) translate3d(80px, 0, 0);
-ms-transform: rotate(569.03226deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(569.03226deg) translate3d(80px, 0, 0);
transform: rotate(569.03226deg) translate3d(80px, 0, 0);
animation-delay: 2.37097s;
}
i:nth-child(50) {
-moz-transform: rotate(580.64516deg) translate3d(80px, 0, 0);
-ms-transform: rotate(580.64516deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(580.64516deg) translate3d(80px, 0, 0);
transform: rotate(580.64516deg) translate3d(80px, 0, 0);
animation-delay: 2.41935s;
}
i:nth-child(51) {
-moz-transform: rotate(592.25806deg) translate3d(80px, 0, 0);
-ms-transform: rotate(592.25806deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(592.25806deg) translate3d(80px, 0, 0);
transform: rotate(592.25806deg) translate3d(80px, 0, 0);
animation-delay: 2.46774s;
}
i:nth-child(52) {
-moz-transform: rotate(603.87097deg) translate3d(80px, 0, 0);
-ms-transform: rotate(603.87097deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(603.87097deg) translate3d(80px, 0, 0);
transform: rotate(603.87097deg) translate3d(80px, 0, 0);
animation-delay: 2.51613s;
}
i:nth-child(53) {
-moz-transform: rotate(615.48387deg) translate3d(80px, 0, 0);
-ms-transform: rotate(615.48387deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(615.48387deg) translate3d(80px, 0, 0);
transform: rotate(615.48387deg) translate3d(80px, 0, 0);
animation-delay: 2.56452s;
}
i:nth-child(54) {
-moz-transform: rotate(627.09677deg) translate3d(80px, 0, 0);
-ms-transform: rotate(627.09677deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(627.09677deg) translate3d(80px, 0, 0);
transform: rotate(627.09677deg) translate3d(80px, 0, 0);
animation-delay: 2.6129s;
}
i:nth-child(55) {
-moz-transform: rotate(638.70968deg) translate3d(80px, 0, 0);
-ms-transform: rotate(638.70968deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(638.70968deg) translate3d(80px, 0, 0);
transform: rotate(638.70968deg) translate3d(80px, 0, 0);
animation-delay: 2.66129s;
}
i:nth-child(56) {
-moz-transform: rotate(650.32258deg) translate3d(80px, 0, 0);
-ms-transform: rotate(650.32258deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(650.32258deg) translate3d(80px, 0, 0);
transform: rotate(650.32258deg) translate3d(80px, 0, 0);
animation-delay: 2.70968s;
}
i:nth-child(57) {
-moz-transform: rotate(661.93548deg) translate3d(80px, 0, 0);
-ms-transform: rotate(661.93548deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(661.93548deg) translate3d(80px, 0, 0);
transform: rotate(661.93548deg) translate3d(80px, 0, 0);
animation-delay: 2.75806s;
}
i:nth-child(58) {
-moz-transform: rotate(673.54839deg) translate3d(80px, 0, 0);
-ms-transform: rotate(673.54839deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(673.54839deg) translate3d(80px, 0, 0);
transform: rotate(673.54839deg) translate3d(80px, 0, 0);
animation-delay: 2.80645s;
}
i:nth-child(59) {
-moz-transform: rotate(685.16129deg) translate3d(80px, 0, 0);
-ms-transform: rotate(685.16129deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(685.16129deg) translate3d(80px, 0, 0);
transform: rotate(685.16129deg) translate3d(80px, 0, 0);
animation-delay: 2.85484s;
}
i:nth-child(60) {
-moz-transform: rotate(696.77419deg) translate3d(80px, 0, 0);
-ms-transform: rotate(696.77419deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(696.77419deg) translate3d(80px, 0, 0);
transform: rotate(696.77419deg) translate3d(80px, 0, 0);
animation-delay: 2.90323s;
}
i:nth-child(61) {
-moz-transform: rotate(708.3871deg) translate3d(80px, 0, 0);
-ms-transform: rotate(708.3871deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(708.3871deg) translate3d(80px, 0, 0);
transform: rotate(708.3871deg) translate3d(80px, 0, 0);
animation-delay: 2.95161s;
}
i:nth-child(62) {
-moz-transform: rotate(720deg) translate3d(80px, 0, 0);
-ms-transform: rotate(720deg) translate3d(80px, 0, 0);
-webkit-transform: rotate(720deg) translate3d(80px, 0, 0);
transform: rotate(720deg) translate3d(80px, 0, 0);
animation-delay: 3s;
}
@keyframes spin {
from {
opacity: 0.0;
}
to {
opacity: 0.6;
transform: translate3d(-4px, -4px, 570px);
}
}
#black {
position: absolute;
left: 10px;
bottom: 10px;
color: rgba(255, 255, 255, 0.6);
text-decoration: none;
}
#black:after {
content: 'Black & white';
}
#black:target {
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
background: #111;
cursor: default;
}
#black:target:after {
content: '';
}
</style>
<script ></script>
</head>
<body>
<div style="text-align:center;clear:both;">
<script type="text/javascript"></script>
<script type="text/javascript"></script>
</div>
<div class='wrapper'>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
</div>
<a href='#black' id='black'></a>
<script ></script>
</body>
</html>
文章来源:https://www.html5tricks.com/css3-cloudy-animation.html
喜欢记得来一个
观看更加系统化的直播课程
领取更多前端相关开发资料
可以扫描下方二维码
加苏莱小姐姐的微信即可领取
以上是关于CSS3 | CSS3实现云雾缭绕动画效果的主要内容,如果未能解决你的问题,请参考以下文章