I am currently working on creating a floating animation effect. The concept involves having the element swing with an axis at its lower part, similar to the image provided below:
My challenge lies in figuring out how to coordinate the two movements and ensure that they remain consistent.
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-transform: rotateZ(-30deg);
-ms-transform: rotateZ(-30deg);
transform: rotateZ(-30deg);
-webkit-transform: rotateZ(30deg);
-ms-transform: rotateZ(30deg);
transform: rotateZ(30deg);