svg+css实现彩色波浪荡漾动画效果代码
代码语言:html
所属分类:动画
代码描述:svg+css实现彩色波浪荡漾动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } html { background: #000 url(//repo.bfw.wiki/bfwrepo/image/657108e83dd99.png) center center repeat scroll; background-size: 350px 350px; } html::before { content: ""; filter: url("#disFilter"); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: inherit; z-index: -1; animation: bgscroll 25s linear infinite; transform: scale(1.2); position: fixed; } @keyframes bgscroll { 0% { background-position: 0 0; } 100% { background-position: 350px 350px; } } #waterSvg { position: absolute; width: 0; height: 0; overflow: hidden; } body { display: grid; height: 100vh; width: 100vw; margin: 0; align-content: center; } main { background: white; max-width: 900px; width: 90%; margi.........完整代码请登录后点击上方下载按钮下载查看
网友评论0