1
I’m trying to make a fade-in effect so my page is opened using only CSS, would there be any way to do that? The browser is able to do this?
I did some research and what I found I’m leaving here to illustrate the question better.
img {
opacity: 0;
-webkit-animation: fadeIn 1s ease-in-out;
-moz-animation: fadeIn 1s ease-in-out;
-o-animation: fadeIn 1s ease-in-out;
animation: fadeIn 1s ease-in-out;
-webkit-animation-fill-mode: forwards;
-moz-animation-fill-mode: forwards;
-o-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}
You tried to use what you found??
– Francisco
https://codepen.io/JTBennett/pen/GorVRL
– user60252
If you want this to happen when loading the page, you will have to use Javascript. It is one thing to make an Random animation at any time, it is another to do it when the page is loaded. Detail this in your question.
– Renan Gomes