Skip to content

Commit

Permalink
[FIX] Disabled parallax in IE since scrolling looks jerky.
Browse files Browse the repository at this point in the history
  • Loading branch information
pxamike authored and dmh committed Jun 9, 2016
1 parent 45162a5 commit c125bfb
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions dev/js/main/contentElements/parallax.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@
$(document).ready(function() {
// Parallax
// https://github.com/nk-o/jarallax
$('.parallax-img').jarallax({
type: 'scroll', //scroll, scale, opacity, scroll-opacity, scale-opacit
speed: 0.5,
noAndroid: false,
noIos: true
});
$('.parallax-video').jarallax({
type: 'scroll', //scroll, scale, opacity, scroll-opacity, scale-opacit
speed: 0.5,
noAndroid: true,
noIos: true
});
if (!$('html').hasClass('IE')) { // disabled in IE since scrolling looks jerky
$('.parallax-img').jarallax({
type: 'scroll', //scroll, scale, opacity, scroll-opacity, scale-opacit
speed: 0.5,
noAndroid: false,
noIos: true
});
$('.parallax-video').jarallax({
type: 'scroll', //scroll, scale, opacity, scroll-opacity, scale-opacit
speed: 0.5,
noAndroid: true,
noIos: true
});
}
});

})(jQuery);

0 comments on commit c125bfb

Please sign in to comment.