css-doodle实现流体特效
代码语言:html
所属分类:动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title> Liquid (Chrome only)</title> <style> html, body { width: 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(#459dc1, #070729); overflow: hidden; } </style> </head> <body translate="no"> <style> css-doodle { --rule: (: doodle { @grid: 80x1 / 100vw 100vh; @min-size: 100px; filter: url(#filter); will-change: transform; animation: r23s linear infinite; } @size: 100% 50%; position: absolute; top: 25%; transform: rotate(@r(360deg)); perspective: 130px; :after { content: ''; position: absolute; @size: @r(10px); will-change: transform; animation: cycle @r(2s, 8s) linear infinite; animation-delay: -@r(100s); background: #fff8; box-shadow: @m3(0 0 calc(.5vmin + 5px) #fff); --trans: scaleX.........完整代码请登录后点击上方下载按钮下载查看
网友评论0