css+div实现粘稠液态文字滚动动画效果代码
代码语言:html
所属分类:动画
代码描述:css+div实现粘稠液态文字滚动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700"); *, *::before, *::after { padding: 0; margin: 0 auto; box-sizing: border-box; } body { font-family: Raleway, sans-serif; background-color: #000; color: #fff; font-size: 24px; } .content { width: 95%; max-width: 40ch; padding: 3em 1em; } .marquee { position: relative; width: 100%; height: 2em; font-size: 5em; display: grid; place-items: center; overflow: hidden; } .marquee_text { position: absolute; min-width: 100%; white-space: nowrap; -webkit-animation: marquee 16s infinite linear; animation: marquee 16s infinite linear; } @-webkit-keyframes marquee { from { translate: 70%; } to { translate: -70%; } } @keyframes marquee { from { translate: 70%; } to { translate: -70%; } } .marquee_blur { position: absolute; inset: 0; display: grid; place-items: center; ba.........完整代码请登录后点击上方下载按钮下载查看
网友评论0