Projekte
Auf GitHub ansehen
michaeljbishop/NGAParallaxMotion
Über uns
Eine kleine Kategorie für UIView, mit der sich eine einzige Eigenschaft – „parallaxIntensity“ – festlegen lässt, um mit UIMotionEffect einen Parallaxeffekt zu erzielen.
Web- und App-EntwicklungGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
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
Ähnliche Projekte entdecken
Wird geladen…