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 #2

Open
jhb opened this issue Jul 14, 2019 · 2 comments
Open

Scrolling #2

jhb opened this issue Jul 14, 2019 · 2 comments

Comments

@jhb
Copy link

jhb commented Jul 14, 2019

First: thanks a lot for creating this component!

I wondered if there could be a way to have longer content scrolling, e.g. "overflow: scroll" support?

Thanks!

@supereggbert
Copy link
Owner

I did think about including that but the problem is you can't render with a scroll offset to canvas, there is a hack but it will likely mess up some of the css. There is an additional problem in that the performance for scrolling will probably be really bad which is the same reason I backed off trying to get CSS animations and transitions working for the moment. However, I'll take a look to see if I can get something working in the medium term even if the performance is bad.

If it's urgent, you can achieve a scrolling effect by simply having a div with overflow hidden and simply set the margin of a containing div to a negative value to offset ie <div style="overflow:hidden"><div style="margin-top: -50px">content</div></div>

@Utopiah
Copy link
Contributor

Utopiah commented Jul 29, 2019

Example of scrolling #4 (comment)

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

3 participants