Skip to content

Usage: Prerequisites

morands edited this page Feb 4, 2012 · 2 revisions

To get started, either download a snapshot from the Downloads page or clone the repository to your computer.

Dependencies

TouchScroll depends on the CubicBezier constructor from my css-beziers project. If you use the minified file (dist/touchscroll.min.js) you’re already set – the dependency is contained in the file. If you decided to go with the unminified version (e.g. for profiling), you have to include css-beziers.js into your page.

Cloned Repository

After cloning TouchScroll, first check out the experimental branch:

git checkout experimental

Now you are using the latest version. To get css-beziers.js, run

 git submodule init && git submodule update

which will clone the css-beziers repository into lib/css-beziers

Download

If you downloaded TouchScroll and don’t use the minified version, you will also have to download the css-beziers.js file and include it into your page.

Next

Learn how to create a scrolling layer on Usage: Instantiation.

Clone this wiki locally