the image is not turning 360 deg with keyframes?
-
hello,
this is my html code:
<img src="https://laptopdiscounthub.com/wp-content/uploads/2024/05/hero-image1-e1719849650769.webp" alt="Laptop Deals">
and this is css code :
.header-section2 {
display:flex;
width:33.333%;
perspective: 1000px;
overflow:hidden;
}
.header-section2 img {
margin-top: 10px;
position: relative;
animation: rotate-infinite 4s linear infinite;
transform-origin: center center; /* Rotate around the center */
}
@keyframes rotate-infinite {
0% {
transform: rotateY(0deg); /* Start rotation */
}
100% {
transform: rotateY(360deg); /* Full rotation */
}
}I tried everything but I couldn’t get this image to turn horizontally and infinite on its axis . it is only turning half circle and back. can someone tell me where the problem is and how I can solve it?
I don’t know if this question can be asked hier or in everything else wordpress?
thanks
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.