Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="https://cdnjs.cloudflare.com/ajax/libs/parallax/3.1.0/parallax.min.js"></script>
- <script>
- jQuery(function($){
- $( ".estrellas" ).attr( "data-depth", "0.1" );
- $( ".luna" ).attr( "data-depth", "0.3" );
- $( ".nave" ).attr( "data-depth", "0.4" );
- $( ".astronauta" ).attr( "data-depth", "0.8" );
- $( ".marte" ).attr( "data-depth", "0.3" );
- $( ".satelite" ).attr( "data-depth", "0.5" );
- $( ".meteorito-1" ).attr( "data-depth", "0.6" );
- $( ".tierra" ).attr( "data-depth", "0.4" );
- $( ".meteorito-2" ).attr( "data-depth", "0.7" );
- var parallaxMouseScroll = $('#hero').get(0);
- var parallaxInstance = new Parallax(parallaxMouseScroll);
- });
- </script>
Add Comment
Please, Sign In to add comment