@appartmint/mint 1.0.3 → 1.0.4

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.
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Imports
3
+ */
4
+ import MintEvent from './event';
5
+
1
6
  /**
2
7
  * Scroll functions
3
8
  */
@@ -37,5 +42,12 @@ export abstract class MintScroll {
37
42
  }
38
43
  });
39
44
  }
45
+
46
+ /**
47
+ * Show visible elements on scroll
48
+ */
49
+ static showElementsOnScroll(): void {
50
+ window.addEventListener('scroll', MintEvent.throttleEvent(this.showElements, 200));
51
+ }
40
52
  };
41
53
  export default MintScroll;