css实现响应式文字填充渐变动画效果代码
代码语言:html
所属分类:响应式
代码描述:css实现响应式文字填充渐变动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
box-sizing: border-box;
}
@property --angle {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
:root {
--clr-bg: black;
}
body {
font-family: "Monda", sans-serif;
height: 100svh;
margin: 0;
padding: 2rem;
background-color: var(--clr-bg);
background-image: radial-gradient(black, rgb(15, 23, 42));
background-attachment: fixed;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
color: rgb(234, 233, 233);
}
.wrapper {
position: relative;
width: min(100%, 600px);
}
.wrapper > h1 {
font-size: clamp(0.8rem, 3.5v.........完整代码请登录后点击上方下载按钮下载查看
网友评论0