diff --git a/parallax.js b/parallax.js index 00cae3b..f8d08d7 100644 --- a/parallax.js +++ b/parallax.js @@ -15,7 +15,7 @@ var Parallax = { window_top = $(window).scrollTop(); window_bottom = window_top + $(window).height(); $(this.ident).each(function(){ - if (!is_on_screen(this) || !$(this).attr('parallax-offset') != false) { return; } + if (!is_on_screen(this) || !$(this).attr('parallax-offset')) { return; } element = $(this); center_pos = (element.offset().top - $(window).scrollTop()) + (element.height() / 2); perc = -(0.5 - ((window_top - center_pos) / window_bottom));