photoTilt

HTML5 clone of the photo tilt feature/gesture/ux found in Facebook's Paper app

  • Owner: tregoning/photoTilt
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Photo Tilt

HTML5 clone of the photo tilt feature/gesture/ux found in Facebook's Paper app.

Basic Usage

PhotoTilt (image url, container node)

var photoTilt = new PhotoTilt({
	url: 'photo.jpg',
	lowResUrl: 'lowRes.jpg', //optional it will load lowRes 1st if available
	maxTilt: 18, //optional, defaults to 20
	container: document.body  //optional, defaults to body
	reverseTilt: false //optional, defaults to false
});

Note: The speed of the tilt can be tweaked by updating the transform transtion speed in the CSS file.

Demo

You can find a working example here (make sure you test this on a device with a triaxial/accelerometer like a phone/tablet).

More

Blog post with extra information here.

TODO

Main metrics

Overview
Name With Ownertregoning/photoTilt
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2014-02-02 06:48:11
Pushed At2014-02-09 06:28:45
Last Commit At2014-02-08 22:28:23
Release Count0
用户参与
Stargazers Count417
Watchers Count25
Fork Count28
Commits Count37
Has Issues Enabled
Issues Count6
Issue Open Count2
Pull Requests Count2
Pull Requests Open Count0
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private