whitehelmet-scripts
v1.0.18
Published
White Helmet custom scripts for Webflow — served via jsDelivr and unpkg
Maintainers
Readme
White Helmet Scripts
Custom JavaScript modules for White Helmet Webflow sites, served via jsDelivr and unpkg.
Available Scripts
| File | Description |
|------|-------------|
| navigation.js | Site navigation |
| page-loader.js | Page loading transitions |
| split-text.js | Text splitting utility |
| text-scroll.js | Text scroll animations |
| home-video.js | Home page video handling |
| building-type-animation.js | Building type-on animation |
| lifecycle-animation.js | Lifecycle section animation |
CDN URLs
Replace @1.0.0 with the version you want to pin (or use @latest for the newest).
jsDelivr
https://cdn.jsdelivr.net/npm/[email protected]/dist/navigation.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/page-loader.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/split-text.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/text-scroll.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/home-video.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/building-type-animation.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/lifecycle-animation.jsunpkg
https://unpkg.com/[email protected]/dist/navigation.js
https://unpkg.com/[email protected]/dist/page-loader.js
https://unpkg.com/[email protected]/dist/split-text.js
https://unpkg.com/[email protected]/dist/text-scroll.js
https://unpkg.com/[email protected]/dist/home-video.js
https://unpkg.com/[email protected]/dist/building-type-animation.js
https://unpkg.com/[email protected]/dist/lifecycle-animation.jsUsage in Webflow
Add script tags in Webflow's Page Settings → Before </body> tag (or site-wide in Project Settings):
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/navigation.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/page-loader.js"></script>Add only the scripts each page needs.
Publishing Updates
- Edit the source JS files in the root
- Run
npm run buildto sync changes todist/ - Bump the version in
package.json - Run
npm publish
Then update the version number in your Webflow script tags.
First-Time Publish
npm login # log in to your npm account
npm publish # publishes dist/ files only