css实现文字炫光显示动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现文字炫光显示动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html>
<head>
<style>
*, *:before, *:after {
box-sizing: border-box;
}
body {
margin: 0;
width: 100%;
font-family: "Cutive Mono", monospace;
line-height: 1.5;
font-weight: 400;
font-style: normal;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
.sep {
border: 0;
width: 3em;
height: 1px;
margin: 1em 0;
background-color: rgba(255, 255, 255, 0.4);
}
.mast {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
height: 100vh;
color: #fff;
background-color: #111;
}
.mast:after {
z-index: 0;
content: '';
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: rgba(17, 17, 17, 0.9);
}
.mast > header {
z-index: 2;
position: relative;
}
.mast__bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
margin: 0;
padding: 0;
background-size: cover;
background-position: 50%;
}
.mast__header {
padding: 5%;
}
.mast__title {
font-family: "Cutive Mono", monospace;
font-size: 1em;
font-weight: 400;
letter-spacing: 0.3em;
text-transform: uppercase;
}
.mast__title span {
-webkit-animation: letter-glow 0.7s 0s ease both;
animation: letter-glow 0.7s 0s ease both;
}
.mast__title span:nth-child(1) {
-webkit-animation-delay: 0.05s;
animation-delay: 0.05s;
}
.mast__title span:nth-child(2) {
-webkit-animation-delay: 0.1s;
animation-delay: 0.1s;
}
.mast__title span:nth-child(3) {
-webkit-animation-delay: 0.15s;
animation-delay: 0.15s;
}
.mast__title span:nth-child(4) {
-webkit-animation-delay: 0.2s;
animation-delay: 0.2s;
}
.mast__title span:nth-child(5) {
-webkit-animation-delay: 0.25s;
animation-delay: 0.25s;
}
.mast__title span:nth-child(6) {
-webkit-animation-delay: 0.3s;
animation-delay: 0.3s;
}
.mast__title span:nth-child(7) {
-webkit-animation-delay: 0.35s;
animation-delay: 0.35s;
}
.mast__title span:nth-child(8) {
-webkit-animation-delay: 0.4s;
animation-delay: 0.4s;
}
.mast__title span:nth-child(9) {
-webkit-animation-delay: 0.45s;
animation-delay: 0.45s;
}
.mast__title span:nth-child(10) {
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s;
}
.mast__title span:nth-child(11) {
-webkit-animation-delay: 0.55s;
animation-delay: 0.55s;
}
.mast__title span:nth-child(12) {
-webkit-animation-delay: 0.6s;
animation-delay: 0.6s;
}
.mast__title span:nth-child(13) {
-webkit-animation-delay: 0.65s;
animation-delay: 0.65s;
}
.mast__title span:nth-child(14) {
-webkit-animation-delay: 0.7s;
animation-delay: 0.7s;
}
.mast__title span:nth-child(15) {
-webkit-animation-delay: 0.75s;
animation-delay: 0.75s;
}
.mast__title span:nth-child(16) {
-webkit-animation-delay: 0.8s;
animation-delay: 0.8s;
}
.mast__title span:nth-child(17) {
-webkit-animation-delay: 0.85s;
animation-delay: 0.85s;
}
.mast__title span:nth-child(18) {
-webkit-animation-delay: 0.9s;
animation-delay: 0.9s;
}
.mast__title span:nth-child(19) {
-webkit-animation-delay: 0.95s;
animation-delay: 0.95s;
}
.mast__title span:nth-child(20) {
-webkit-animation-delay: 1s;
animation-delay: 1s;
}
.mast__title span:nth-child(21) {
-webkit-animation-delay: 1.05s;
animation-delay: 1.05s;
}
.mast__title span:nth-child(22) {
-webkit-animation-delay: 1.1s;
animation-delay: 1.1s;
}
.mast__title span:nth-child(23) {
-webkit-animation-delay: 1.15s;
animation-delay: 1.15s;
}
.mast__title span:nth-child(24) {
-webkit-animation-delay: 1.2s;
animation-delay: 1.2s;
}
.mast__title span:nth-child(25) {
-webkit-animation-delay: 1.25s;
animation-delay: 1.25s;
}
.mast__text {
font-family: "Cutive Mono&qu.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0