css loading 动画 发表于 2019-11-21 | 更新于: 2024-04-15 | 分类于 css | css 实现加载中点点点动画。 用stylus写的。 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354$text-color = #2D3040 .clip background-color:$text-color display: inline-block; width:4px; height:4px; border-radius:4px; vertical-align:middle; position:relative; margin-left:2px; animation: dot1 2s infinite step-start both; &:before content:'' background-color:$text-color display: inline-block; width:4px; height:4px; border-radius:4px; position:absolute; left: 8px; visibility:hidden animation: dot2 2s infinite step-start both; &:after content:'' background-color:$text-color display: inline-block; width:4px; height:4px; border-radius:4px; position:absolute; left: 16px; visibility:hidden animation: dot3 2s infinite step-start both;@keyframes dot1 0%,100% visibility:hidden; 50% visibility:visible; 80% visibility:visible;@keyframes dot2 0%,25% visibility:hidden; 75% visibility:visible; 90% visibility:hidden;@keyframes dot3 0%,50% visibility:hidden; 75% visibility:visible; 90% visibility:hidden;