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

Is there any way to disable scrollReveal on unsupported browsers? #109

Closed
fliptation opened this issue Nov 22, 2014 · 3 comments
Closed

Comments

@fliptation
Copy link

Elements with data-sr are hidden on older browsers. Would be great if they would be shown, just not animated.

@jlmakes
Copy link
Owner

jlmakes commented Nov 25, 2014

Great idea @fliptation, just had to a little cleanup but…

I could use your help testing it — please try v2.1.0 which now has this baked in.

@fliptation
Copy link
Author

Thanks for the update, but it doesn't seem to work…

Edit: Oh, it does work, when removing <style> [data-sr] { visibility: hidden; } </style> in the header. Thanks a lot

@jlmakes
Copy link
Owner

jlmakes commented Nov 25, 2014

It my tests, I can leave [data-sr] { visibility: hidden; } at the top of my document and it still displays elements normally; in the code, the destroy() method removes all data-sr attributes when no CSS support is found.

If you’ve spotted another bug, please open a new issue.

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

No branches or pull requests

2 participants