T
T
Tanya2021-09-22 21:32:02
css
Tanya, 2021-09-22 21:32:02

How to make it so that after the animation it remains, and does not return to the css or js output?

I have such a PEN:
https://codepen.io/tanya-nami/pen/xxrJLgY
The animation was corrected as I needed, BUT I need the background fill to remain after it reaches the end and not be removed. Please tell me how to do it? I would be very grateful because I can’t find a sensible example and way out! Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Sokolov, 2021-09-22
@Silvanassss

If you understand correctly, and it is necessary that after a single click, the circle fills with color and remains, then you can add a regular class
instead of a pseudo -class.:active

T
tyoma_koder, 2021-09-22
@tyoma_koder

animation-fill-mode:forwards

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question