Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The correct way to create small parallax effect for background image #36

Open
gnatok opened this issue Aug 29, 2016 · 1 comment
Open

Comments

@gnatok
Copy link

gnatok commented Aug 29, 2016

Hello. Have small question for you, guys.
I just have started to use you amazing library. I almost implement all animations that i need but struggling with the main first animation. I need to implement parallax effect(not actually parallax, bg moving with different speed) for background image when i scroll between views.
What is the correct animation type to implement that?
Thanks

@getaaron
Copy link

You could apply translations to the background image view using TranslationAnimation and ScaleAnimation.

If you want it to skew 3D, you could make your own custom animation that adjusts the CATransform3D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants