div+css实现2024年新年快乐动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现2024年新年快乐动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2&display=swap");
@import url("https://fonts.cdnfonts.com/css/segoe-script");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
overscroll-behavior-x: none;
overscroll-behavior-y: none;
}
body {
position: relative;
color: #000;
background: powderblue;
font-family: "Segoe Script", sans-serif;
font-size: max(20px, 4vw);
font-weight: 500;
width: 100vw;
min-height: 100vh;
text-align: center;
line-height: 1;
overflow: hidden;
}
main {
position: relative;
}
section {
position: relative;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
h1 {
font-size: min(10vw, 45px);
font-weight: normal;
color: transparent;
-webkit-background-clip: text;
background-clip: text;
background-image: url(https://.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0