<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 })

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdn.tailwindcss.com
  2. https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.3/gsap.min.js