<hr class="my-3"/>

<p id="text" class="p-[50px]">
  這是一段文字,這是一個 GSAP 跑馬燈範例
</p>

<hr class="my-3"/>
gsap.to('#text', {
 x: -1000,
 duration: 10,
})

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