Breaking Changes
- Options renamed —
scrollParent→container,triggerStart→containerStart,triggerEnd→containerEnd. This groups container-related options under a shared prefix and avoids confusion with GSAP'strigger(which refers to the element, not the container). TheresolvedBoundsgetter now returns{ element, container }instead of{ element, scrollParent }.
New Features
- Multi-match selector warning (dev mode) — when a CSS selector passed to
elementorcontainermatches more than one DOM element, a warning advises creating one instance per element instead.
Build
- Original sources embedded in source maps — published
.mapfiles now contain the actual TypeScript source viainlineSources, making them useful for debugging without thesrc/directory. - TypeDoc setup — API documentation can now be generated via
npm run docs:api.
Docs
- Comprehensive JSDoc added to all public API surfaces (classes, methods, types, enums).
- Animated GIF diagrams for contain and intersect modes.