src/animations/ball-pulse.scss
(完整代码) 632B@import '../variables';
@import '../mixins';
@import '../functions';
@keyframes scale {
0% {
transform: scale(1);
opacity: 1;
}
45% {
transform: scale(0.1);
opacity: 0.7;
}
80% {
transform: scale(1);
opacity: 1;
}
}
// mixins should be separated out
@mixin ball-pulse($n: 3, $start: 1) {
@for $i from $start through $n {
> div:nth-child(#{$i}) {
animation: scale 0.75s delay(0.12s, $n, $i) infinite cubic-bezier(.2,.68,.18,1.08);
}
}
}
.ball-pulse {
@include ball-pulse();
> div {
@include balls();
@include global-animation();
display: inline-block;
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
