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

Scrolling animations like parallax scrolling #173

Open
blurtime opened this issue Sep 8, 2018 · 3 comments
Open

Scrolling animations like parallax scrolling #173

blurtime opened this issue Sep 8, 2018 · 3 comments

Comments

@blurtime
Copy link

blurtime commented Sep 8, 2018

First of all, thank you for this awesome pod!
It's not really a huge issue, much rather a small suggestion but maybe one could add scrolling animations to Pageboy like parallax scrolling or even fading. Especially parallax scrolling makes lots of PageViewControllers look a lot smoother.
This pod (AnimatedCollectionViewLayout) demonstrates a couple of animations. I tried to add parallax scrolling on my own. Unfortunately, I couldn't make it work. I only managed to add it to my normal UIPageViewController but I'd like to stick with Pageboy. Therefore, if you should have some time left, you could maybe add this at some point. I'm sure many others would be grateful as well. Looking forward to Pageboy 3!

@msaps
Copy link
Member

msaps commented Sep 12, 2018

@blurtime sounds great! Did you say you managed to implement it on a regular UIPageViewController? Would be interesting to see how, and would certainly help as Pageboy uses this under the hood 😄

@blurtime
Copy link
Author

blurtime commented Sep 15, 2018

Hi @msaps
I'm happy you like the idea! Unfortunately, I didn't create a backup of the file I got it to work with. The same day I deleted the file I later realized that Pageboy uses it under the hood when I debugged the view hierarchy for another reason. None of my previous backups contain the file either... :(
I can only vaguely (I still was a bloody newcomer when I did it) remember that I couldn't find anything on "UIPageViewControllers and parallax scrolling" and therefore watched some tutorials on how to add parallax scrolling to uiscrollviews and managed to apply this to my UIPageViewController. I'm sorry

@blurtime
Copy link
Author

This looks very interesting. I tried to implement it but didn't manage to do it:
https://github.com/alkhokhlov/SwiftyPageController/blob/master/SwiftyPageController/Classes/SwiftyPageControllerAnimatorParallax.swift

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

No branches or pull requests

2 participants