プロジェクト
概要
HTML5 clone of the photo tilt feature/gesture/ux found in Facebook's Paper app
デザイン・メディア計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル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
- add option for full screen mode
- implement lockOrientation (only works in FF)
関連プロジェクトを探す
読み込み中…