标签:16 50% height width 步长 animation steps background
一:大数据热点图
<style>
body {
background-color: #333;
}
.map {
position: relative;
width: 747px;
height: 616px;
background: url(../media/map.png) no-repeat;
margin: 0 auto;
}
.a {
position: absolute;
top: 230px;
right: 195px;
color: white;
}
.dot {
position: absolute;
width: 6px;
height: 6px;
background-color: #09f;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.a1,
.a2,
.a3 {
position: absolute;
width: 4px;
height: 4px;
border-radius: 50%;
box-shadow: 0 0 12px #009dfd;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
/* animation: name duration timing-function delay iteration-count direction fill-mode; */
animation: aa 1.3s linear infinite;
}
.a2 {
animation-delay: 0.4s;
}
.a3 {
animation-delay: 0.8s;
}
@keyframes aa {
0% {}
70% {
width: 40px;
height: 40px;
opacity: 1;
}
100% {
width: 70px;
height: 70px;
opacity: 0;
}
}
</style>
</head>
<body>
<div class="map">
<div class="a">
<div class="dot"></div>
<div class="a1"> </div>
<div class="a2"></div>
<div class="a3"></div>
</div>
</div>
</body>
二.速度曲线steps()步长
打字机效果:
<style>
div {
overflow: hidden;
font-size: 20px;
width: 0;
height: 30px;
background-color: pink;
/* 让我们的文字强制一行内显示 */
white-space: nowrap;
/* steps 就是分几步来完成我们的动画 有了steps 就不要在写 ease 或者linear 了 */
animation: w 4s steps(10) forwards;
}
@keyframes w {
0% {
width: 0;
}
100% {
width: 200px;
}
}
</style>
</head>
<body>
<div>世纪佳缘我在这里等你</div>
</body>
标签:16,50%,height,width,步长,animation,steps,background 来源: https://blog.csdn.net/lazylYYY/article/details/119078672
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。