纯css模拟波纹动画效果
代码语言:html
所属分类:动画
代码描述:纯css模拟波纹动画效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background: #000; height: 100vh; overflow: hidden; display: -webkit-box; display: flex; -webkit-box-pack: center; justify-content: center; -webkit-box-align: center; align-items: center; -webkit-perspective: 500px; perspective: 500px; } .rings .ring { position: absolute; -webkit-animation: rotate 5000ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite alternate; animation: rotate 5000ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite alternate; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } .rings .ring .ring_inner { border-radius: 100%; } .rings .ring:nth-child(1) .ring_inner { width: 0px; height: 0px; border: 2px solid #1effff; -webkit-animation: wave 3000ms 0ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 0ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(2) .ring_inner { width: 30px; height: 30px; border: 2px solid #1ef5fd; -webkit-animation: wave 3000ms 50ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 50ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(3) .ring_inner { width: 60px; height: 60px; border: 2px solid #1eebfb; -webkit-animation: wave 3000ms 100ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 100ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(4) .ring_inner { width: 90px; height: 90px; border: 2px solid #1ee1f9; -webkit-animation: wave 3000ms 150ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 150ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(5) .ring_inner { width: 120px; height: 120px; border: 2px solid #1ed7f7; -webkit-animation: wave 3000ms 200ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 200ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(6) .ring_inner { width: 150px; height: 150px; border: 2px solid #1ecdf5; -webkit-animation: wave 3000ms 250ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 250ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(7) .ring_inner { width: 180px; height: 180px; border: 2px solid #1ec3f3; -webkit-animation: wave 3000ms 300ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 300ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(8) .ring_inner { width: 210px; height: 210px; border: 2px solid #1eb9f1; -webkit-animation: wave 3000ms 350ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 350ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(9) .ring_inner { width: 240px; height: 240px; border: 2px solid #1eafef; -webkit-animation: wave 3000ms 400ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 400ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(10) .ring_inner { width: 270px; height: 270px; border: 2px solid #1ea5ed; -webkit-animation: wave 3000ms 450ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 450ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(11) .ring_inner { width: 300px; height: 300px; border: 2px solid #1e9beb; -webkit-animation: wave 3000ms 500ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 500ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(12) .ring_inner { width: 330px; height: 330px; border: 2px solid #1e91e9; -webkit-animation: wave 3000ms 550ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 550ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(13) .ring_inner { width: 360px; height: 360px; border: 2px solid #1e87e7; -webkit-animation: wave 3000ms 600ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 600ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(14) .ring_inner { width: 390px; height: 390px; border: 2px solid #1e7de5; -webkit-animation: wave 3000ms 650ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 650ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(15) .ring_inner { width: 420px; height: 420px; border: 2px solid #1e73e3; -webkit-animation: wave 3000ms 700ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 700ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(16) .ring_inner { width: 450px; height: 450px; border: 2px solid #1e69e1; -webkit-animation: wave 3000ms 750ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 750ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(17) .ring_inner { width: 480px; height: 480px; border: 2px solid #1e5fdf; -webkit-animation: wave 3000ms 800ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 800ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(18) .ring_inner { width: 510px; height: 510px; border: 2px solid #1e55dd; -webkit-animation: wave 3000ms 850ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 850ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(19) .ring_inner { width: 540px; height: 540px; border: 2px solid #1e4bdb; -webkit-animation: wave 3000ms 900ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 900ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(20) .ring_inner { width: 570px; height: 570px; border: 2px solid #1e41d9; -webkit-animation: wave 3000ms 950ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 950ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; -webkit-filter: blur(15px) brightness(400%); filter: blur(15px) brightness(400%); } .rings .ring:nth-child(21) .ring_inner { width: 600px; height: 600px; border: 2px solid #1e37d7; -webkit-animation: wave 3000ms 1000ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; animation: wave 3000ms 1000ms cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0