プロジェクト
GitHubで見る
michaeljbishop/NGAParallaxMotion
概要
UIView用の小さなカテゴリで、1つのプロパティ「parallaxIntensity」を設定するだけで、UIMotionEffectによる視差効果を実現できます。
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- -1
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルNGAParallaxMotion
A tiny category on UIView that allows you to set one property: parallaxIntensity to achieve
a parallax effect with UIMotionEffect.
Show the parallax effect in one line
theView.parallaxIntensity = 10;
Positive values make the view appear to extend from the screen. Negative values make the view appear to recess behind the screen.
Interface Builder
Additionally, you can set this property within Interface Builder by editing the "User Defined Runtime Attributes" and adding:
KeyPath | Type | Value
----------------------------------------------
parallaxIntensity | Number | your depth value

Examples
On

Off

License
This code is under the MIT license.
Release Notes
1.1
- Added new direction constraints (Thanks @arunaharsa!)
1.0
- Initial Release
関連プロジェクトを探す
読み込み中…