css实现三维球体波浪浮动动画效果代码
代码语言:html
所属分类:三维
代码描述:css实现三维球体波浪浮动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Anton'>
<style>
body {
background: linear-gradient(0deg, #1b2735 0%, #090a0f 100%);
height: 100vh;
overflow: hidden;
display: flex;
font-family: "Anton", sans-serif;
justify-content: center;
align-items: center;
perspective: 500px;
}
div {
transform-style: preserve-3d;
}
.camera {
position: absolute;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.camera.-x {
transform: rotateX(60deg);
}
.camera.-y {
trannsform: rotateY(0deg);
}
.camera.-z {
-webkit-animation: rotateZ 30000ms linear infinite;
animation: rotateZ 30000ms linear infinite;
}
.sea {
position: relative;
display: grid;
grid-template-rows: repeat(10, 8%);
grid-template-columns: repeat(10, 8%);
grid-gap: 2%;
width: 250px;
height: 250px;
}
.counter {
position: absolute;
width: 100%;
height: 100%;
}
.counter.-x {
transform: rotateX(-60deg);
}
.counter.-y {
transform: rotateY(0deg);
}
.counter.-z {
animation: rotateZ 30000ms linear infinite reverse;
}
.graphic {
width: 100%;
height: 100%;
background: radial-gradient(circle at 0 3px, #fff, #6094B3 60%, #25335E);
border-radius: 100%;
filter: drop-shadow(0 100px 12px rgba(96, 148, 179, 0.2));
}
.wave:nth-child(1) {
-webkit-animation: wave 1000ms -30ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -30ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(2) {
-webkit-animation: wave 1000ms -60ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -60ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(3) {
-webkit-animation: wave 1000ms -90ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -90ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(4) {
-webkit-animation: wave 1000ms -120ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -120ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(5) {
-webkit-animation: wave 1000ms -150ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -150ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(6) {
-webkit-animation: wave 1000ms -180ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -180ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(7) {
-webkit-animation: wave 1000ms -210ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -210ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(8) {
-webkit-animation: wave 1000ms -240ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -240ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(9) {
-webkit-animation: wave 1000ms -270ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -270ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(10) {
-webkit-animation: wave 1000ms -300ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -300ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(11) {
-webkit-animation: wave 1000ms -330ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -330ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(12) {
-webkit-animation: wave 1000ms -360ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -360ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(13) {
-webkit-animation: wave 1000ms -390ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -390ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(14) {
-webkit-animation: wave 1000ms -420ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -420ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(15) {
-webkit-animation: wave 1000ms -450ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -450ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(16) {
-webkit-animation: wave 1000ms -480ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -480ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(17) {
-webkit-animation: wave 1000ms -510ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -510ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(18) {
-webkit-animation: wave 1000ms -540ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -540ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(19) {
-webkit-animation: wave 1000ms -570ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -570ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(20) {
-webkit-animation: wave 1000ms -600ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -600ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(21) {
-webkit-animation: wave 1000ms -630ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -630ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(22) {
-webkit-animation: wave 1000ms -660ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -660ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(23) {
-webkit-animation: wave 1000ms -690ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -690ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(24) {
-webkit-animation: wave 1000ms -720ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -720ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(25) {
-webkit-animation: wave 1000ms -750ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -750ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(26) {
-webkit-animation: wave 1000ms -780ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -780ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(27) {
-webkit-animation: wave 1000ms -810ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -810ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(28) {
-webkit-animation: wave 1000ms -840ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -840ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(29) {
-webkit-animation: wave 1000ms -870ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -870ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(30) {
-webkit-animation: wave 1000ms -900ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -900ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(31) {
-webkit-animation: wave 1000ms -930ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -930ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(32) {
-webkit-animation: wave 1000ms -960ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -960ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(33) {
-webkit-animation: wave 1000ms -990ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -990ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(34) {
-webkit-animation: wave 1000ms -1020ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -1020ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(35) {
-webkit-animation: wave 1000ms -1050ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -1050ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(36) {
-webkit-animation: wave 1000ms -1080ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -1080ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(37) {
-webkit-animation: wave 1000ms -1110ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -1110ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(38) {
-webkit-animation: wave 1000ms -1140ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -1140ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(39) {
-webkit-animation: wave 1000ms -1170ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -1170ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}
.wave:nth-child(40) {
-webkit-animation: wave 1000ms -1200ms cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
animation: wave 1000ms -1200ms.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0