Skip to content

Animation interval #17762

Answered by wongjn
stychu asked this question in Help
Apr 23, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

With the built-in ping animation, it's duration is set as 1 second. In it's @keyframes, it has:

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

Which implies that the actual pulse animation is between 0%75% and the pause is 75%100%. Thus, we can see deduce that the pulse animation duration is $1s × 0.75 = 0.75s$. Thus, to adjust the times between pulses, we'd adjust the stationary percentage and total duration time to match.

Since we know that the ping duration is 0.75s and we want to pause 30s between, the total duration would be $0.75s + 30s = 30.75s$. To calculate the percentage duration of the pulse for the keyframes expression, we'd express it as a pe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stychu
Comment options

Answer selected by stychu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants