Capítulo 386 de 411

Chapter 386: .vars

Core Idea

[read-only] The vars configuration object used to create the SplitText instance

Code Examples

let splitText = SplitText.create({
  type: "chars,words",
  wordsClass: "word++",
});

console.log(splitText.vars); // {type: "chars,words",wordsClass: "word++",}
  • What it demonstrates: typical usage of .vars in a GSAP animation.

Key Takeaways

  1. [read-only] The vars configuration object used to create the SplitText instance