Search code examples
parallaxfamo.us

What surface to use for a scrolling parallax interface with Famo.us


I would like to create an interface based on 3 layers stacked that produce an horizontal scrolling parallax on user input (on swipe). Each layer got image placed randomly.

Should I use a ScrollingSurface (that is let say 300% of the screen width ) or just a simple surface a layer ? (or another more clever option)


Solution

  • The solution I used is to create all the surfaces a the same 'index' and programatically create the parallax effect based on touchSync