Quantcast
Channel: Viewport / Waypoint actions in Tumult Hype: Starting an animation when scrolling to an element
Viewing all articles
Browse latest Browse all 76

Viewport / Waypoint actions in Tumult Hype: Starting an animation when an element is visible

$
0
0

@jakob wrote:

You could use the waypoint plugin "inview" and then run this code on scene load:

   var inview = new Waypoint.Inview({
     element: $('YOURTRIGGERELEMENT')[0],
     enter: function(direction) {
       hypeDocument.continueTimelineNamed('YOURTIMELINE', hypeDocument.kDirectionForward)
     },
     exited: function(direction) {
    	hypeDocument.continueTimelineNamed('YOURTIMELINE', hypeDocument.kDirectionReverse)
     }
  })

Read full topic


Viewing all articles
Browse latest Browse all 76

Trending Articles