<div id="box" class="box ml-[16px] mt-[16px] w-[50px] h-[50px] bg-blue-600 rounded-lg"></div>
<hr class="my-2">
<div class="box ml-[16px] w-[50px] h-[50px] bg-blue-800 rounded-lg"></div>
const boxes = document.querySelectorAll('.box')
gsap.to(boxes, { x: 100, duration: 3 })
This Pen doesn't use any external CSS resources.