css实现文字抛光玻璃模糊动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现文字抛光玻璃模糊动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> html { --size: 100vw; --loop: 3s; --delay: 0.05; --background1: #129681; --background2: #085147; --background3: #e01c82; --color1: #ffebe5; --color2: #ffd9ce; font-family: rotor; font-size: calc(var(--size) *0.17); background: #282c37; } body { margin: 0; } section { background-image: radial-gradient(circle at 0% 110%, var(--background2), var(--background1)), radial-gradient(circle at 0% -30%, var(--background3), transparent); background-blend-mode: screen; } .text { width: var(--size); height: 100vh; display: flex; justify-content: center; align-items: center; font-weight: 800; background-color: #000; background-image: repeating-radial-gradient(circle at 120% 110%, #000 10px, #333 20px), repeating-radial-gradient(circle at -20% 30%, #000 10px, #333 20px); background-blend-mode: screen; filter: contrast(5); mix-blend-mode: lighten; } span { -webkit-animation: text var(--loop) ease-in alternate infinite; animation: text var(--loop) ease-in alternate infinite; } span:nth-child(1) { -webkit-animation-delay: calc(var(--loop) *-1); animation-delay: calc(var(--loop) *-1); } span:nth-child(2) { -webkit-animation-delay: calc(var(--loop) *-1 + (var(--loop) * var(--delay))); animation-delay: calc(var(--loop) *-1 + (var(--loop) * var(--delay))); } span:nth-child(3) { -webkit-animation-delay: calc(var(--loop) *-1 + (var(--loop) * var(--delay) * 2)); animation-delay: calc(var(--loop) *-1 + (var(--loop) * var(--delay) * 2)); } span:nth-child(4) { -webkit-animation-delay: calc(var(--loop) *-1 + (var(--loop) * var(--delay) * 3)); animation-delay: calc(var(--loop) *-1 + (var(--loop) * var(--delay) * 3)); } span:nth-child(5) { -webkit-animation-delay: calc(var(--loop) *-1 + (var(--loop) * var(--delay) * 4)); animation-delay: calc(var(--loop) *-1.........完整代码请登录后点击上方下载按钮下载查看
网友评论0