Skip to content

Commit c542859

Browse files
authored
Merge pull request #201 from marcosnakamine/master
Working with jQuery 3.x.x
2 parents 93b2aa0 + 43248a8 commit c542859

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $ bower i --save parallax.js
1313
```
1414

1515
```html
16-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
16+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
1717
<script src="/path/to/parallax.min.js"></script>
1818
```
1919

parallax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@
405405

406406
// Parallax Data-API
407407

408-
$(document).on('ready.px.parallax.data-api', function () {
409-
$('[data-parallax="scroll"]').parallax();
408+
$( function () {
409+
$('[data-parallax="scroll"]').parallax();
410410
});
411411

412412
}(jQuery, window, document));

parallax.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)