文字错位动画遮罩效果
代码语言:html
所属分类:动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
html, body {
width: 100%;
height: 100%;
}
body {
display: flex;
align-items: center;
justify-content: center;
background-color: black;
color: black;
font-family: neue-haas-grotesk-display, "Helvetica Neue", Helvetica, sans-serif;
font-weight: 600;
font-style: normal;
font-size: 21px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-display: block;
}
.container {
position: relative;
width: 716px;
height: 1008px;
visibility: hidden;
background: red;
cursor: pointer;
}
.jam {
position: absolute;
z-index: 0;
top: 0;
left: 0;
width: 716px;
height: 1008;
fill: red;
}
.content {
position: relative;
z-index: 2;
width: 716px;
height: 100%;
text-align: right;
padding: 82px 40px;
}
.content p {
margin: 0 0 48px;
letter-spacing: 0.5px;
line-height: 1.3;
}
.content span {
display: block;.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0