@aw-webflow/catalyst_case_study_page
v1.0.0
Published
Custom GSAP animations and TOC linking for the Catalyst case study page on Webflow.
Readme
@aw-webflow/catalyst_case_study_page
Custom GSAP animations and TOC linking for the Catalyst case study page on Webflow.
Features
- Hero staggered fade-up — logos (
.aw_logo_top,.cross_icon,.catalyst_logo_top) animate in sequence - Word-by-word text reveal —
#hero_txtsplits into words and fades up with stagger - Section fade-ups —
.in-convo-withand.pm-pointers-wraperfade in after hero text - Scroll-triggered content reveal —
.case_study_toc_wrapperand.case_study_blockfade up when#content_sectionenters the viewport - TOC smooth scroll —
.toc-linkelements scroll to their target with navbar offset - Active link highlighting — current section's TOC link turns purple and bold on scroll
- Mobile TOC — auto-collapse
#m-tocon link click and click-outside-to-close (below 991px)
Dependencies
GSAP and ScrollTrigger must be loaded via CDN before this script:
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"></script>Usage via jsDelivr CDN
After publishing to npm, use the jsDelivr CDN link in your Webflow project's custom code (before </body>):
<script src="https://cdn.jsdelivr.net/npm/@aw-webflow/[email protected]/script.js"></script>To always use the latest version:
<script src="https://cdn.jsdelivr.net/npm/@aw-webflow/catalyst_case_study_page@latest/script.js"></script>Deployment Workflow
- Make changes to
script.js - Bump the version in
package.json - Commit and push to GitHub
- Publish to npm:
npm publish --access public - jsDelivr automatically picks up the new version from npm
- If using a pinned version in Webflow, update the version number in the script tag
Local Development
npm install
npm startLicense
ISC
