michaeljbishop/NGAParallaxMotion
À propos
Une petite catégorie pour UIView qui permet de définir une seule propriété, « parallaxIntensity », afin de créer un effet de parallaxe avec UIMotionEffect.
Développement web et applicatifProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalNGAParallaxMotion
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
Explorer des projets similaires
Chargement…