MCPcopy
hub / github.com/greensock/GSAP / constructor

Method constructor

src/ScrollTrigger.js:599–603  ·  view source on GitHub ↗
(vars, animation)

Source from the content-addressed store, hash-verified

597export class ScrollTrigger {
598
599 constructor(vars, animation) {
600 _coreInitted || ScrollTrigger.register(gsap) || console.warn("Please gsap.registerPlugin(ScrollTrigger)");
601 _context(this);
602 this.init(vars, animation);
603 }
604
605 init(vars, animation) {
606 this.progress = this.start = 0;

Callers

nothing calls this directly

Calls 3

initMethod · 0.95
_contextFunction · 0.70
registerMethod · 0.65

Tested by

no test coverage detected