Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(function( $ ){
- // Local Scroll Speed
- $.localScroll({
- duration: 750
- });
- // Image Section Height
- var windowHeight = $( window ).height();
- $( '.image-section' ) .css({'height': windowHeight +'px'});
- $( window ).resize(function(){
- var windowHeight = $( window ).height();
- $( '.image-section' ) .css({'height': windowHeight +'px'});
- });
- // Create an array of images that you'd like to use
- var images = [
- 'http://rts.beyostudio.com/wp-content/themes/rebeccathompson/images/backstretch-1.jpg',
- 'http://rts.beyostudio.com/wp-content/themes/rebeccathompson/images/backstretch-2.jpg',
- 'http://rts.beyostudio.com/wp-content/themes/rebeccathompson/images/backstretch-3.jpg'
- ];
- $('body.home').backstretch(images, {
- fade: 750,
- duration: 4000
- });
- $(window).one('backstretch.after', function () {
- $('.backstretch').after('<div class="linear-gradient"></div>');
- $('.linear-gradient').fadeIn(1000);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement