一个div+css实现液体loading加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:一个div+css实现液体loading加载动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body, div { display: grid; } div, ::before, ::after { grid-area: 1/1; } body { margin: 0; height: 100vh; } body::before, body::after { background: lemonchiffon; content: ""; } body::after { place-self: center; padding: 7.5em; background: linear-gradient(-45deg, #ff8500, #f900a0); mix-blend-mode: lighten; } .load { background: #fff; filter: blur(12px) contrast(36) blur(1px); mix-blend-mode: darken; } .load::before, .load::after { --i: 0; --sgn-i: calc(2*var(--i) - 1); --den: calc(1 + (4 - 1)*var(--i)); place-self: center; margin: 2.25em; pad.........完整代码请登录后点击上方下载按钮下载查看
网友评论0