https://codepen.io/jenny0515/pen/JjOmVeL
Please check my code in the link above!
How can I make them rotate closer together and stay within the rectangle while going in circular motion in CSS? That doesn't mean I want the scroll option in the main div/rectangle; I just want to be able to see the cubes rotate in circular motion closer to each other. So, they should circle near the circle in the center of the rectangle.
Here's a small preview of my CSS code found in the link:
.aqua-6s{
-webkit-animation: aqua linear infinite 6s;
-moz-animation: aqua linear infinite 6s;
-o-animation: aqua linear infinite 6s;
-ms-animation: aqua linear infinite 6s;
animation: aqua linear infinite 6s;
-webkit-transform-origin: 50% 50%;
}
Is there anything missing in the animations that will help me accomplish getting the cubes rotating near the circle and within the div? But please check the link, since everything's there; it would mean a lot!


