Limit parallax distance to some relative value, to make parallax animation more gentle.
Example: for an ImageView with 400x300 dimensions, we set an image with 400x1000 dimensions.
Enabling Y axis animation, we will experience very "aggressive" animation, while image will be moved
by 600 pixels vertically. Setting factor to 1.5f will result in 150px diff: 300*1.5=150
Limit parallax distance to some relative value, to make parallax animation more gentle. Example: for an ImageView with 400x300 dimensions, we set an image with 400x1000 dimensions. Enabling Y axis animation, we will experience very "aggressive" animation, while image will be moved by 600 pixels vertically. Setting factor to 1.5f will result in 150px diff: 300*1.5=150