Skip to content

Commit a5d677c

Browse files
committed
adds dynamic parallax options modification #51
1 parent 6f9b3b3 commit a5d677c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

parallax.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,10 @@
329329
options = $.extend({}, $this.data(), options);
330330
$this.data('px.parallax', new Parallax(this, options));
331331
}
332+
else if (typeof option == 'object')
333+
{
334+
$.extend($this.data('px.parallax'), options);
335+
}
332336
if (typeof option == 'string') {
333337
Parallax[option]();
334338
}

parallax.min.js

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

0 commit comments

Comments
 (0)