Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Update jquery.parallax-1.1.3.js #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update jquery.parallax-1.1.3.js #12

wants to merge 1 commit into from

Commits on Oct 19, 2014

  1. Update jquery.parallax-1.1.3.js

    Rename parameter and change position.
    
    New JS (load before body element) for auto-load all parallax elements:
    
    $(document).ready(function(){
    	$('.ab-parallax').each(function() {
    		xpos  = $(this).attr('parallax-xpos');
    		ypos  = $(this).attr('parallax-ypos');
    		speed = $(this).attr('parallax-speed');
    		$(this).parallax(xpos, ypos, speed);
    	});
    })
    
    And new usage in html :
    
    <div id="intro" **class="ab-parallax" parallax-xpos="50%" parallax-ypos="100" parallax-speed="0.8"**>
    	<!-- content here -->
    </div>
    
    Please update documentation if you approve my work :)
    AxelBriche committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    ac1b8c9 View commit details
    Browse the repository at this point in the history