div+css布局实现波浪背景动画卡片效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css布局实现波浪背景动画卡片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" /> <title>BFW NEW PAGE</title> <style> body{ background: #212121; } .e-card { margin: 100px auto; background: transparent; box-shadow: 0px 8px 28px -9px rgba(0,0,0,0.45); position: relative; width: 240px; height: 330px; border-radius: 16px; overflow: hidden; } .wave { position: absolute; width: 540px; height: 700px; opacity: 0.6; left: 0; top: 0; margin-left: -50%; margin-top: -70%; background: linear-gradient(744deg,#af40ff,#5b42f3 60%,#00ddeb); } .icon { width: 3em; margin-top: -1em; padding-bottom: 1em; } .infotop { text-align: center; font-size: 20px; position: absolute; top: 5.6em; left: 0; right: 0; color: rgb(255, 255, 255); font-weight: 600; } .name { font-size: 14px; font-weight: 100; position: relative; top: 1em; text-transform: lowercase; } .wave:nth-child(2), .wave:nth-child(3) { top: 210px; } .playing .wave { border-radius: 40%; animation: wave 3000ms infinite linear; } .wave { border-radius: 40%; animation: wave 55s infinite linear; } .playing .wave:nth-child(2) { animation-duration: 4000ms; } .wave:nth-child(2) { animation-duration: 50s; } .playing .wave:nth-child(3) { animation-duration: 5000ms; } .wave:nth-child(3) { animation-duration: 45s; } @keyframes wave { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style> </head> <body> <div class="e-card playing"> <div class="image"></div> <div class="wave"></div> <div class="wave"></div> &l.........完整代码请登录后点击上方下载按钮下载查看
网友评论0