Answer the question
In order to leave comments, you need to log in
Animation when opening a page?
Hello everybody!
I'll give you an example right away .
How can I make it so that the animation is when the page is opened, and not after hovering over?
Answer the question
In order to leave comments, you need to log in
You need to use animation propertiesanimation-delay
-webkit-animation-delay: 2s; /* Chrome, Safari, Opera */
animation-delay: 2s;
-2s
the animation will start immediately 2 seconds later. <div></div>
div {
width: 100px;
height: 100px;
background: red;
position: relative;
-webkit-animation: mymove 2s infinite; /* Chrome, Safari, Opera */
-webkit-animation-delay: none; /* Chrome, Safari, Opera */
animation: mymove 2s infinite;
animation-delay: none;
}
/* Chrome, Safari, Opera */
@-webkit-keyframes mymove {
from {left: 0px;}
to {left: 200px;}
}
@keyframes mymove {
from {left: 0px;}
to {left: 200px;}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question