js实现文字燃烧动画效果代码
代码语言:html
所属分类:动画
代码描述:js实现文字燃烧动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Rubik+Bubbles&display=swap'> <style> :root { --color-primary: gold; --color-second: orangered; } p { font-size: 5rem; margin: auto; font-family: system-ui; font-weight: 900; text-transform: uppercase; color: var(--color-primary); -webkit-text-stroke: 2px var(--color-second); text-stroke: 2px var(--color-second); text-shadow: 1px 1px 5px var(--color-second); position: relative; line-height: 100%; } .bubble { aspect-ratio: 1/1; border-radius: 50%; background-image: radial-gradient(var(--color-primary) 20%, var(--color-second)); box-sizing: border-box; position: absolute; index: -1; bottom: 25px; opacity: 0; mix-blend-mode: overlay; animation: floatUp 1s ease-in infinite; } @keyframes floatUp { 25% { opacity: 1; transform: sca.........完整代码请登录后点击上方下载按钮下载查看
网友评论0