Div appear in the bottom (Superscrollorama)

6

I have a problem with Scrollorama. I would like the div to start appearing already in the bottom, but it is only appearing when I am already in the middle of the site. The class:

$(document).ready(function() {
   var controller = $.superscrollorama();
   var scrollDuration = 200; 
   controller.addTween('#fade', TweenMax.from( $('#fade'), .50, {css:{opacity:0}, ease:Quad.easeInOut}), scrollDuration);
});
    
asked by anonymous 25.02.2014 / 00:52

1 answer

2

I could try as in the example below, just passing the position via CSS.

controller.addTween(
    '#fade', 
    TweenMax.from( $('#fade'), .50, 
     { css:{opacity:0}, 
       css:{left: '0px'},
       css:{top: '0px'},
        ease:Quad.easeInOut
     } ), 
     scrollDuration );

Reference: link

    
25.02.2014 / 22:30