Carousel is rotating somewhere in the left side of box. How to make to rotate in the center of div around own axis?
https://code pen.io/whiskaso/pen/zYmKBMQ
Was trying with all values as width, margin but couldn’t find place where it should be setted.
2
Answers
I’ve added
left: 50%;
in .carousel, and the carousel start rotating in the center, I wish thatโs what you want.Try adding a fixed width to your container class:
and change your height to width in the carousel class:
It should now rotate in its own axis. Hope this helps ๐