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

Suggestion: add debug flag to show/hide the console.log calls #351

Closed
toddholmberg opened this issue Jun 6, 2017 · 1 comment
Closed

Comments

@toddholmberg
Copy link

Is it possible to add a debug flag to the configuration options that will show/hide the console.log() calls on the following lines?

  • 57
  • 172
  • 271
  • 288
  • 288

Thanks!

@jlmakes
Copy link
Owner

jlmakes commented Jun 6, 2017

This is now possible as of ScrollReveal v4-beta.9 @toddholmberg
Install via https://unpkg.com/scrollreveal@4.0.0-beta.9 or npm install scrollreveal@beta

Example:

window.sr = ScrollReveal()
sr.debug = true
sr.reveal('.items', { container: 'not a real selector' })

/**
ScrollReveal: Reveal failed.
  - Invalid container.
*/

It is an instance property (false by default) that accepts a boolean.

Thanks for the great feature request!

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