I like to translateY and rotate a h1
element to its place. but the translation doesn't work and while rotating the text leaves its place and gets back, but i want it to be in its place the whole time.
code:
.article1 h1{
font-size: 50px;
font-weight: 600;
margin-top: 130px;
margin-bottom: 12px;
animation: tilt 2s ease 3;
}
@keyframes tilt{
0% {
transform: translateY(200px);
transform: rotateY(0deg);
opacity: 0.2;
}
100% {
transform: translateY(0px);
transform: rotateY(360deg);
opacity: 1;
}
}
I need the h1 to come to its location from 200px top, and do a 360deg Y rotation while coming down, is it possible?
What we do.
We provide Top-Quality Plants you choose right to your doorstep