How can I disable image animations that run when a web page reloads?
I'm building a webapplication and have run into a problem. I'm trying to recreate the logo which is displayed on Disney+ (https://www.disneyplus.com/en-se) in the upper left corner. The logo appears when the user is scrolling down and disappears when the user is scrolling up. My logo is appearing/disappearing when I scroll down/up. The only problem with my logo is that it will shortly appear and disappear everytime I reload the page. Is there a way to get rid of this?
I've tried to solve it on my own, with ChatGPT and with YouTube (https://www.youtube.com/watch?v=4prVdA7_6u0&ab_channel=KevinPowell) but it didn't work.
Disney+
Disney+ | Stream new Originals, blockbusters and series
The streaming home of Disney, Marvel, Pixar, Star Wars, National Geographic, and so much more. Bringing the best movies, shows, and Originals.
Kevin Powell
YouTube
Animate from display none
A common problem people ask me about is animating from, or to display: none, since it's not an animatable property.
After making my recent video on the dialog element, I got a lot of questions about animating it in and out, and it just so happens to use
display: none
when it's closed, so I saw it as a good opportunity to take a look at it.
...1 Reply
I solved it using css transitions instead: