Sha256: 161cb8b7795717374ba3181bf899811446fe5f8b3f472e6becea719c2e31baac

Contents?: true

Size: 390 Bytes

Versions: 3

Compression:

Stored size: 390 Bytes

Contents

// добавляем фичу "изменение background-position-y при скролле"

var Paralaxer = function (_$wimages) {

    var _fInit = function (_$wimages) {

        $(document).on('scroll', function(){
            var xx = $(this).scrollTop();
            _$wimages.css('background-position-y', "-"+parseInt(xx/2)+'px');
        });

    };

    _fInit(_$wimages);

};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
c80_wslider2-0.1.0.3 app/assets/javascripts/c80_wslider2/components/wloader/paralaxer.js
c80_wslider2-0.1.0.2 app/assets/javascripts/c80_wslider2/components/wloader/paralaxer.js
c80_wslider2-0.1.0.1 app/assets/javascripts/c80_wslider2/components/wloader/paralaxer.js