Skip to main content
View Demo The Squeditor framework uses declarative data attributes for GSAP animations. A single gsap-init.js file scans the DOM and fires all animations automatically—no per-element JavaScript needed. Here are the three main attributes for general animations:

data-gsap

Standard animations: fade, slide, stagger, scroll reveal

data-gsap-split

Text reveal: split by chars, words, or lines via SplitText

data-gsap-scroll

Advanced scroll: pin sections, scrub, parallax

data-gsap

Used for standard from/to animations, scroll reveals, and staggering children.

Options


data-gsap-split

Used to reveal text by chars, words, or lines. Powered by the GSAP SplitText plugin.
Never use on elements with child HTML tags. Plain text headings or paragraphs only.

Options


data-gsap-scroll

Advanced ScrollTrigger features: pinning, scrubbing, and parallax.
Always pair with a data-gsap child. The scroll attribute controls the trigger point, while the child’s data-gsap controls the animation tween.

Options


Easing Quick Reference

  • power2.out — Smooth deceleration (default, works for most elements)
  • power3.out — Stronger deceleration (good for large movements)
  • expo.out — Very sharp then slow (dramatic hero animations)
  • back.out — Slight overshoot (good for chars and icon animations)
  • none — Linear (use only for scrub-based scroll animations)