Code

GSAP

Easing

Intermediate Six built-in ease functions compared side-by-side. All dots travel the same distance in the same duration — only the motion curve differs. GSAP Docs

none
power2.inOut
elastic.out
bounce.out
back.inOut
circ.inOut
// Same distance, same duration — different feel
const eases = [
  'none',
  'power2.inOut',
  'elastic.out(1, 0.3)',
  'bounce.out',
  'back.inOut(2.5)',
  'circ.inOut',
];

eases.forEach((ease, i) => {
  gsap.to(dots[i], {
    x: 240,
    duration: 1.5,
    ease,
    repeat: -1,
    yoyo: true,
    delay: i * 0.15,
  });
});