Jump to content
Search Community

Paul Hunault

Business
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Paul Hunault

  1. Hi there,

     

    I have the same error "Cannot read property 'length' of undefined"

    You can see my website here :  http://devpm.pureemaison.com/

     

    Here is my code : 

    function pm_onScrollInit( items, trigger ) {
    			items.each( function() {
    				var Element = $(this),
    				    AnimationClass = Element.hasClass('text_anim'),
    				    split_text = new SplitText(Element, {type:"lines,words"}),
    				    tl = new TimelineLite();
    
    				var Trigger = ( trigger ) ? trigger : Element;
    
    				Trigger.waypoint(function() {
    					tl.staggerFrom(split_text.lines, 1, {y:-20, autoAlpha:1, ease:Back.easeOut}, 0.02);
    				},{
    				    triggerOnce: false,
    				    offset: '75%'
    				});
    			});
    		}
    		pm_onScrollInit( $('.text_anim') );

     

    Any ideas ?

     

    Thanks for your help !

×
×
  • Create New...