Proyek
Lihat di GitHub
michaeljbishop/NGAParallaxMotion
Tentang
Category kecil pada UIView yang memungkinkan Anda mengatur satu properti, "parallaxIntensity", untuk menghasilkan efek paralaks dengan UIMotionEffect.
Pengembangan web dan aplikasiPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- -1
- dalam 15 hari
- -1
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliNGAParallaxMotion
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
Jelajahi proyek terkait
Memuat…