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

Goal: Make it possible to display code guides that change as you scroll #1

Open
matthew-carroll opened this issue Oct 30, 2022 · 2 comments

Comments

@matthew-carroll
Copy link
Contributor

Some code guides on the internet change the example code as you scroll, e.g., LiveView Native: https://liveviewnative.github.io/liveview-client-swiftui/tutorials/phoenixliveviewnative/03-navigation-and-hero

I think their guide behavior is based on Apple's.

We should make it easy to achieve this effect with Inception.

CC @domesticmouse

@domesticmouse
Copy link

Do you want to capture what you are seeing somehow? When I click on that link I'm not seeing anything out of the ordinary.

But it might be due to the fact I'm viewing it on an iPhone?

@matthew-carroll
Copy link
Contributor Author

Sure. Here's a video. I guess it's really nothing more than switching code based on scroll offset. I would find an Apple example if I remembered where they live. I bet those are bit more polished.

I'm also imagining the ability to fade between them. Or what would really be cool is if each line flew in/out and animated to its next position.

Screen.Recording.2022-10-30.at.3.10.56.AM.mov

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