-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from yama-dev/v0.13.5
V0.13.5
- Loading branch information
Showing
9 changed files
with
61 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
SLUG=js-scroll-effect-module | ||
VERSION=0.13.3 | ||
VERSION=0.13.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ By using pre-prepared CSS, it is surprisingly easy to add effects that match the | |
|
||
- npm -> [https://www.npmjs.com/package/js-scroll-effect-module](https://www.npmjs.com/package/js-scroll-effect-module) | ||
|
||
- Standalone(CDN) -> [https://cdn.jsdelivr.net/gh/yama-dev/[email protected].3/dist/js-scroll-effect-module.js](https://cdn.jsdelivr.net/gh/yama-dev/[email protected].3/dist/js-scroll-effect-module.js) | ||
- Standalone(CDN) -> [https://cdn.jsdelivr.net/gh/yama-dev/[email protected].5/dist/js-scroll-effect-module.js](https://cdn.jsdelivr.net/gh/yama-dev/[email protected].5/dist/js-scroll-effect-module.js) | ||
|
||
- Zip -> [yama-dev/js-scroll-effect-module](https://github.com/yama-dev/js-scroll-effect-module/releases/latest) | ||
|
||
|
@@ -44,8 +44,8 @@ import SCROLL_EFFECT_MODULE from 'js-scroll-effect-module'; | |
### Basic Use | ||
|
||
``` html | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yama-dev/[email protected].3/examples/scroll-effect-module.css"> | ||
<script src="https://cdn.jsdelivr.net/gh/yama-dev/[email protected].3/dist/js-scroll-effect-module.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yama-dev/[email protected].5/examples/scroll-effect-module.css"> | ||
<script src="https://cdn.jsdelivr.net/gh/yama-dev/[email protected].5/dist/js-scroll-effect-module.js"></script> | ||
|
||
<div data-scroll></div> | ||
|
||
|
@@ -63,7 +63,7 @@ new SCROLL_EFFECT_MODULE({ | |
### Advanced Use | ||
|
||
``` html | ||
<script src="https://cdn.jsdelivr.net/gh/yama-dev/[email protected].3/dist/js-scroll-effect-module.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/yama-dev/[email protected].5/dist/js-scroll-effect-module.js"></script> | ||
|
||
<div data-scroll data-scroll-name="name-1"></div> | ||
|
||
|
@@ -72,7 +72,7 @@ new SCROLL_EFFECT_MODULE({ | |
<script> | ||
const ScrollEffectModule = new SCROLL_EFFECT_MODULE({ | ||
target : '[data-scroll]', | ||
classNameInview : 'is-active', | ||
classNameInview : 'is-scroll-active', | ||
ratio : 0.8, // 判定する比率を指定(ウィンドウ高さを1として指定) | ||
reverse : false, // スクロールを戻した時にクラスを削除するかどうか | ||
|
@@ -84,6 +84,8 @@ const ScrollEffectModule = new SCROLL_EFFECT_MODULE({ | |
autoStart : true, // 自動でスタートするかどうか | ||
autoStartType : 'ready', // ready, load, scroll | ||
updateResizeAuto : true, | ||
throttleInterval : 5, | ||
on: { | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters