michaeljbishop / NGAParallaxMotion

A tiny category on UIView that allows you to set one property: "parallaxIntensity" to achieve a parallax effect with UIMotionEffect
MIT License
641 stars 31 forks source link

`parallaxIntensity` as a name could use improvement #3

Open michaeljbishop opened 11 years ago

michaeljbishop commented 11 years ago

"Intensity" as a name is a bit vague and it's not clear if an "intensity" can be negative ( though the value of this variable certainly can be).

Suggestions:

I'm open to suggestions.

zmcartor commented 11 years ago

Hello,

parallaxLevel makes sense as a notion that increasing the 'level' increases the amount of the effect.

michaeljbishop commented 11 years ago

I was wondering about that. Does it make sense to make a negative "level"? That's my hesitation. It's difficult because the value is both relative to the superview and it's not strictly a Z-Value. It's weird.

zmcartor commented 11 years ago

Negative 'level' makes sense when thinking about the concept of 'sea level.' Negative and positive measurements exists and have their own effects on the landscape. However that's a little esoteric and I feel like I'm reaching there :ocean:

parallaxOffset may be clearer to those familiar with CSS where offset values can be negative or positive each with their own notion of expected effect.