js实现打字效果
代码语言:html
所属分类:动画
代码描述:js实现打字效果
代码标签: 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css?family=Public+Sans&display=swap");
body {
margin: 0;
padding: 0;
font-family: "Public Sans", sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
}
img {
width: 100px;
height: 100px;
}
h1 {
font-size: 68px;
color: #747474;
}
h1 span.text {
padding: 0;
padding-right: 4px;
border-right: 2px solid #747474;
animation: blink 0.75s infinite;
}
h1 .blue {
color: #4480ff;
}
h1 .green {
color: #4caf50;
}
h1 .yellow {
color: #f4b400;
}
h1 .red {
color: #f44336;
}
p.info {
font-size: 12px;
margin-top: 6rem;
color: #747474;
}
p.info a {
text-decoration: none;
color: #4480ff;
}
@keyframes blink {
from {
border.........完整代码请登录后点击上方下载按钮下载查看
网友评论0