SkillAgentSearch skills...

NGAParallaxMotion

A tiny category on UIView that allows you to set one property: "parallaxIntensity" to achieve a parallax effect with UIMotionEffect

Install / Use

/learn @michaeljbishop/NGAParallaxMotion
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Interface Builder

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
View on GitHub
GitHub Stars637
CategoryDevelopment
Updated8mo ago
Forks31

Languages

Objective-C

Security Score

87/100

Audited on Jul 14, 2025

No findings