css文字胖瘦变形动画效果代码
代码语言:html
所属分类:动画
代码描述:css文字胖瘦变形动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @font-face { font-family: "fit"; src: url("//repo.bfw.wiki/bfwrepo/font/FitVariable-VF-Testing.woff2") format("woff2-variations"); font-weight: 400; } html { font-family: fit; text-transform: uppercase; font-size: 32vw; line-height: 1; color: transparent; background: linear-gradient(-45deg, #e6c4b3, #f2ead9); } body { margin: 0; min-height: 100vh; display: grid; place-content: center; } h1 { font: inherit; margin: 0; display: flex; align-items: center; } span { mix-blend-mode: multiply; display: block; -webkit-animation: reveal 5s ease-in-out alternate infinite; animation: reveal 5s ease-in-out alternate infinite; } .one { background: linear-gradient(220deg, #0f8a8a, #14b8b8); -webkit-background-clip: text; } .two { background: linear-gradient(190deg, #cc2200, #ff9933); -webkit-background-clip: text; } .one:nth-child(1) { -webkit-animation-delay: -5s; animation-delay: -5s; } .two:nth-child(1) { -webkit-animation-delay: -10s; animation-delay: -10s; } .one:nth-child(2) { -webkit-animation-delay: -4.8s; animation-delay: -4.8s; } .two:nth-child(2) { -webkit-animation-delay: -9.8s; animation-delay: -9.8s; } .one:nth-child(3) { -webkit-animation-delay: -4.6s; animation-delay: -4.6s; } .two:nth-child(3) { -webkit-animation-delay: -9.6s; animation-delay: -9.6s; } .one:nth-child(4) { -webkit-animation-delay: -4.4s; animation-delay: -4.4s; } .two:nth-child(4) { -webkit-animation-d.........完整代码请登录后点击上方下载按钮下载查看
网友评论0