This is a quick overview of three techniques for achieving parallax effect. Produced for an internal training session at Ballistiq.
-
Clone the repository
-
Run a web server. E.g. PHP 5.4's server:
php -S localhost:3000
We cover 3 techniques with increasing difficulty:
-
Fixed background - CSS only
-
Offset background position - Javascript
-
Canvas background image sequence - HTML 5
Please contact me: leo (at) ballistiq.com
Thanks!
Leonard Teo, Ballistiq