Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garris/TremulaJS
TremulaJS: Picture Streams + Momentum Engine + Bézier Paths + Multi-Device
https://github.com/garris/TremulaJS
Last synced: 3 months ago
JSON representation
TremulaJS: Picture Streams + Momentum Engine + Bézier Paths + Multi-Device
- Host: GitHub
- URL: https://github.com/garris/TremulaJS
- Owner: garris
- License: gpl-3.0
- Created: 2014-06-14T06:44:46.000Z (over 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2022-03-02T00:14:46.000Z (over 2 years ago)
- Last Synced: 2024-07-30T04:57:19.623Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.36 MB
- Stars: 1,315
- Watchers: 44
- Forks: 82
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
# TremulaJS
[![CDNJS](https://img.shields.io/cdnjs/v/TremulaJS.svg)](https://cdnjs.com/libraries/TremulaJS)
**Picture Streams + Momentum Engine + Bézier Paths + Cross-Browser + Cross-Device**
TremulaJS is a client-side javascript UI component providing Bézier-based content-stream interactions with momentum & physics effects for mouse, scroll and and touch UIs.
**Put another way, TremulaJS can be thought of as an extremely bad-ass image carousel.**
**[Watch the TremulaJS video demo here](https://vimeo.com/99481197)**
![tremula vimeo image](docs/vimeo.png)
## More...
- Play with the [live component demo](http://garris.github.io/TremulaJS)
- Experiment with the configuration file on [CodePen](http://codepen.io/garris/pen/bevqG?editors=001)
- Get up-and-running with the [fully-documented boilerplate file](https://gist.github.com/garris/2214de2100a4a67a2899), includes a summary of all configuration settings.
- Download, Fork, Contribute on [GitHub](https://github.com/garris/TremulaJS.git)
- Learn how to create your own Grid Projections -- technical articles
coming soonhere!**follow [@garris](https://twitter.com/garris)**
### Installing
cd to the root of your project then...
$ bower install tremulajs --save
Optional install for mocha test framework and local host server (this is just a convenience for testing on local phones and tablets.)cd to the tremulajs directory then...
$ npm install### Stepped scrolling (aka "paged" scrolling)
This feature will auto scroll the stream so that a single item is always presented in the center of the screen -- this is a cover-flow "like" behavior.![](http://garris.github.io/TremulaJS/docs/steppedSwiping.png)
To view the functionality, open the [demo here](http://garris.github.io/TremulaJS/) and call any of the following methods in the console...
loadMountainPop()
loadCarouselWithPop()
loadHorizontalPop()### Running with local data
TremulaJS is happy to run with a local data source. You will need to make sure your browser is not throwing a security error though. Safari typically does not have an issue with this. If you prefer to use chrome you can do a google search to find out how to disable _same origin policy_. Or, you can just run the handy server -- follow the instructions below...
### Running locally with the local test server
cd to the tremulajs directory then...
$ node server.js
### Running mocha.js testsRunning tests will require MochaJS. To add, cd to the tremulajs directory then run...
$ npm install
Then you can run the test script with the test server running (or you can skip that part and use a browser with same origin policy disabled)
$ open http://localhost:3000/test.html
### Building with r.js
cd to the tremulajs directory then...
$ node r.js -o build.js; node r.js -o cssIn=src/Tremula.css out=dist/Tremula.css;node r.js -o build_min.js; node r.js -o cssIn=src/Tremula.css out=dist/Tremula.min.css optimizeCss=standard
### Dependencies
- HammerJS *(A most awesome touch event component)*
- JsBezier *(Thank you Simon Porritt !)*
- jQuery *(jQuery is a little overkill at this point -- It would be very straightforward to remove the few remaining convenience calls. For now, still required. John Resig, I salute you!)*### Tested in the following browsers
iOS Safari, Chrome, OS X Safari, FF, IE (recent versions)