• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Appearing element disappears after animation

Resolved: Appearing element disappears after animation

0
By Isaac Tonny on 18/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I need some help with the visibility property. I’m trying to make an element appear and once it has appeared keeps being visible. That’s this last point that I’m trying to get. I made it appear, but disappears right after the animation.
I suspect the element to take back its hidden value right after the animation ends and I don’t know how to make its new visible value stable.
Thanks guys!
CSS:
HTML:

Answer:

Changed animation: appearing-menu 0.8s forwards;
https://developer.mozilla.org/en-US/docs/Web/CSS/animation-fill-mode

forwards The target will retain the computed values set by the last keyframe encountered during execution.


and added the visibility: visible to the last frame.


If you have better answer, please add a comment about this, thank you!

css-animations keyframe visibility
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Openlayers: Update clusters depending on filter (geometryFunction)

24/03/2023

Resolved: Getting ‘502 Bad Gateway’ while deploying Springboot app in EKS

24/03/2023

Resolved: Why is NGINX’s $request_uri empty?

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.