@iris.interactive/handcook 2.9.34 → 2.9.35

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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Welcome to HandCook 👨‍🍳
2
- ![Version](https://img.shields.io/badge/version-2.9.34-blue.svg?cacheSeconds=2592000)
2
+ ![Version](https://img.shields.io/badge/version-2.9.35-blue.svg?cacheSeconds=2592000)
3
3
  ![Prerequisite](https://img.shields.io/badge/node-%3E%3D%2012.14.0-blue.svg)
4
4
  [![License: UNLICENSED](https://img.shields.io/badge/License-UNLICENSED-yellow.svg)](#)
5
5
  [![Twitter: captain\_iris](https://img.shields.io/twitter/follow/captain\_iris.svg?style=social)](https://twitter.com/captain\_iris)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iris.interactive/handcook",
3
- "version": "2.9.34",
3
+ "version": "2.9.35",
4
4
  "description": "The web cooking by IRIS Interactive",
5
5
  "main": "./public/scripts/index.js",
6
6
  "scripts": {
package/public/index.html CHANGED
@@ -330,7 +330,7 @@
330
330
  </div>
331
331
  </div>
332
332
  </article>
333
- <article id="slider" class="component__wrapper">
333
+ <article id="slider" class="component__wrapper" style="overflow: hidden;">
334
334
  <h2 class="component__content__title">Slider</h2>
335
335
  <div class="component__content">
336
336
  <div class="component__content__topbar">
@@ -26,6 +26,7 @@ export class HcScrollReveal {
26
26
  let interval = 150;
27
27
  let origin = 'bottom';
28
28
 
29
+ //Children by parent
29
30
  const parents = document.querySelectorAll(ElementEnum.scrollRevealParent);
30
31
  parents.forEach( parent => {
31
32
 
@@ -55,7 +56,7 @@ export class HcScrollReveal {
55
56
  }
56
57
  });
57
58
 
58
- ScrollReveal().reveal('[data-hc-scroll-reveal-child]', {
59
+ ScrollReveal().reveal(parent.querySelectorAll("[data-hc-scroll-reveal-child]"), {
59
60
  distance: distance,
60
61
  delay: delay,
61
62
  duration: duration,
@@ -64,6 +65,7 @@ export class HcScrollReveal {
64
65
  });
65
66
  });
66
67
 
68
+ //Specific item
67
69
  const items = document.querySelectorAll(ElementEnum.scrollReveal);
68
70
  items.forEach( item => {
69
71