Skip to content

Conversation

@devanflaherty
Copy link

Wanted to have a few more options via the directive, so I added some bindings.values to look for to set the options for the Scroll Reveal Instance.

Having these extra options and being able to create a SR Instance from my methods was super helpful, hoping it could help someone else as well.

@tserkov
Copy link
Owner

tserkov commented Oct 14, 2017

There are a couple issues with this pull request:

  • You've edited the transpiled distribution file directly. Changes should be made to index.js, and then packaged by running npm run build to update dist/vue-scroll-reveal.js.
  • There's no need to break out each option. The entire binding.value is passed to ScrollReveal as options (see index.js#L7).
  • Adding a $reveal method to the global Vue object is outside the scope of a pure Vue directive.

Thanks!

@tserkov tserkov closed this Oct 14, 2017
@devanflaherty
Copy link
Author

devanflaherty commented Oct 14, 2017 via email

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

Successfully merging this pull request may close these issues.

2 participants