@hortonstudio/main 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,6 +85,12 @@ export async function init() {
85
85
  // Initialize anchor link handling
86
86
  handleAnchorClicks();
87
87
 
88
+ // Mock scroll to trigger scroll-based animations
89
+ if (document.body.scrollHeight > window.innerHeight) {
90
+ gsap.set(window, { scrollTo: 1 });
91
+ gsap.set(window, { scrollTo: 0 });
92
+ }
93
+
88
94
  return {
89
95
  result: "autoInit-smooth-scroll initialized",
90
96
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Version:1.7.0
1
+ // Version:1.7.1
2
2
  const API_NAME = "hsmain";
3
3
 
4
4
  const initializeHsMain = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hortonstudio/main",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Animation and utility library for client websites",
5
5
  "main": "index.js",
6
6
  "type": "module",