TremulaJS

TremulaJS: Picture Streams + Momentum Engine + Bézier Paths + Multi-Device

  • 所有者: garris/TremulaJS
  • 平台:
  • 许可证: GNU General Public License v3.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

TremulaJS

CDNJS

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

tremula vimeo image

While there are some monumental physics-based JS animation frameworks out there -- most notably, famo.us, gsap and velocity.js -- TremulaJS was built with a very specific end in mind: to enable the kind of long-running, low-friction user interactions one might enjoy when navigating large sets of visual data.

See TremulaJS in the wild: currently in production on Art.com.

TremulaJS is compatible with all recent versions of iOS Safari, Chrome, OS X Safari, FF, IE.

TremulaJS was created by Garris Shipon at Art.com Labs.

Licensed under GPLv3.

follow @garris

More info...

  • See the demo video (2.5 min), illustrating some of the visual possibilities.

  • Play with the live component demo

  • Experiment with the configuration file on CodePen

  • Get up-and-running with the fully-documented boilerplate file, includes a summary of all configuration settings.

  • Download, Fork, Contribute on GitHub

  • Learn how to create your own Grid Projections -- technical articles coming soon here!

follow @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.

To view the functionality, open the demo here 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 tests

Running 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)

主要指标

概览
名称与所有者garris/TremulaJS
主编程语言JavaScript
编程语言HTML (语言数: 3)
平台
许可证GNU General Public License v3.0
所有者活动
创建于2014-06-14 06:44:46
推送于2022-03-02 00:14:46
最后一次提交2018-08-27 14:23:48
发布数6
最新版本名称1.3.2 (发布于 )
第一版名称v1.2 (发布于 )
用户参与
星数1.3k
关注者数43
派生数82
提交数230
已启用问题?
问题数32
打开的问题数11
拉请求数2
打开的拉请求数0
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?