Beautiful example. Thanks. When I drag now, the foreground updates to create the parallax effect. But one last thing is missing. When I switch from dragging to scrolling, the original calculations from the drag remain, and the parallax is not updated. How can I set "the scroll" calculations the same as the drag. Currently, I have this:
onDrag:function(){
TweenLite.set('#fg',{x:-this.x*.5,y:-this.y*.5})
}
Is there an event for the scroll when I'm using Draggable.create, etc?