css+div实现文字依附墙壁转弯动画效果代码
代码语言:html
所属分类:动画
代码描述:css+div实现文字依附墙壁转弯动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap"); .noise { display: none; } body { margin: 0; min-height: 100vh; display: grid; align-content: center; font-family: "Montserrat", sans-serif; background-color: #5EB0E5; background-image: linear-gradient(90deg, #aeeff030 35%, #0000 0); } header { position: relative; min-height: 100vh; display: grid; place-content: center; } header:before { position: absolute; z-index: -1; content: ""; inset: 0; background-image: linear-gradient(90deg, #04345810 -29%, #0000 10% 34.7%, #04345820 34.8%, #eee1 43% 44.8%, #aeeff030 44.9%, #0000 50% 54.9%, #04345820 55%, #0000 73%); /*background-image: linear-gradient( 90deg, #04345840 34.8%, #0005 0 44.9%, #04345840 0 55%, #0005 0 ); */ filter: url(#grainy); } @keyframes text-mv { to { text-indent: -5ch; } } h1 { text-align: center; color: #0000; position: relative; font-size: 6vw; } h1 > span:before, h1 > span:after { position: absolute; inset: 0; content: attr(data-val); color: #F9F6EF; text-shadow: 0.1em 0.01em 0.1em color-mix(in lab, c.........完整代码请登录后点击上方下载按钮下载查看
网友评论0