@iris.interactive/handcook 2.9.27 → 2.9.29

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.27-blue.svg?cacheSeconds=2592000)
2
+ ![Version](https://img.shields.io/badge/version-2.9.29-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.27",
3
+ "version": "2.9.29",
4
4
  "description": "The web cooking by IRIS Interactive",
5
5
  "main": "./public/scripts/index.js",
6
6
  "scripts": {
@@ -29,14 +29,14 @@
29
29
  "postcss": "^8.3.0",
30
30
  "resolve-url-loader": "^4.0.0",
31
31
  "sass": "^1.34.0",
32
- "sass-loader": "11.1.1",
33
- "sal.js": "^0.8.5"
32
+ "sass-loader": "11.1.1"
34
33
  },
35
34
  "dependencies": {
36
35
  "@fancyapps/ui": "^4.0.22",
37
36
  "bootstrap": "^5.1.3",
38
37
  "swiper": "8.0.6",
39
38
  "tippy.js": "^6.3.7",
40
- "vanilla-lazyload": "^17.6.1"
39
+ "vanilla-lazyload": "^17.6.1",
40
+ "sal.js": "^0.8.5"
41
41
  }
42
42
  }
package/public/index.html CHANGED
@@ -150,7 +150,7 @@
150
150
  </ul>
151
151
  </nav>
152
152
  </aside>
153
- <section data-hc-scrollspy="#scrollspy-nav" data-hc-scroll-reveal-parent="slide-up">
153
+ <section data-hc-scrollspy="#scrollspy-nav" data-hc-scroll-reveal-parent>
154
154
  <article id="scroll-smooth">
155
155
  <div class="navbar"
156
156
  style="position: sticky; top: 0; height: 50px; display: flex; align-items: center; gap: 40px; background-color: #fff; padding: 0 20px;" id="scroll-smooth-nav">
@@ -14,7 +14,6 @@
14
14
  */
15
15
 
16
16
  import sal from 'sal.js'
17
- import 'sal.js/dist/sal.css';
18
17
  import './scroll-reveal.component.scss';
19
18
  import ElementEnum from "../../enumerators/element.enum";
20
19
 
@@ -24,8 +23,11 @@ export class HcScrollReveal {
24
23
  const parents = document.querySelectorAll(ElementEnum.scrollReveal);
25
24
 
26
25
  parents.forEach( parent => {
27
- const animation = parent.getAttribute('data-hc-scroll-reveal-parent');
26
+ let animation = parent.getAttribute('data-hc-scroll-reveal-parent');
28
27
 
28
+ if (animation.length == 0) {
29
+ animation = "slide-up"
30
+ }
29
31
  Array.prototype.forEach.call(parent.children, child => {
30
32
  if (!child.hasAttribute('data-hc-noscroll-reveal')) {
31
33
  child.setAttribute('data-hc-scroll-reveal', animation);