Skip to content

refactor(core): replace GSAP/ScrollTrigger with custom ScrollScrub#6

Merged
mkurtic merged 1 commit intomainfrom
refacto/remove-gsap
Mar 2, 2026
Merged

refactor(core): replace GSAP/ScrollTrigger with custom ScrollScrub#6
mkurtic merged 1 commit intomainfrom
refacto/remove-gsap

Conversation

@mkurtic
Copy link
Owner

@mkurtic mkurtic commented Mar 2, 2026

  • Remove GSAP dependency; replace with lightweight custom scroll engine
    • Add scroll-scrub-ticker.ts: shared RAF-based active/inactive tick loop
    • Add scroll-trigger.ts: ScrollScrub class + OffsetKeyword/OffsetToken/ScrollOffset types
    • Update scroll-engine.ts and frame-loader.ts to use ScrollScrub
  • Improve scroll offset typings with OffsetKeyword, OffsetToken, ScrollOffset
  • Remove gsap from root dependencies and all keyword lists
  • Add 'test' script to packages/core/package.json
  • Fix vitest.config.mts setupFiles path to use absolute URL (works from any CWD)

- Remove GSAP dependency; replace with lightweight custom scroll engine
  - Add scroll-scrub-ticker.ts: shared rAF-based active/inactive tick loop
  - Add scroll-trigger.ts: ScrollScrub class + OffsetKeyword/OffsetToken/ScrollOffset types
  - Update scroll-engine.ts and frame-loader.ts to use ScrollScrub
- Improve scroll offset typings with OffsetKeyword, OffsetToken, ScrollOffset
- Remove gsap from root dependencies and all keyword lists
- Add 'test' script to packages/core/package.json
- Fix vitest.config.mts setupFiles path to use absolute URL (works from any CWD)
@mkurtic mkurtic merged commit 96e86e6 into main Mar 2, 2026
2 checks passed
@mkurtic mkurtic deleted the refacto/remove-gsap branch March 2, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant