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

Adding additional class name to parallaxing element #5

Closed
wants to merge 1 commit into from
Closed

Adding additional class name to parallaxing element #5

wants to merge 1 commit into from

Conversation

nbrylevv
Copy link
Contributor

@nbrylevv nbrylevv commented Nov 2, 2017

Hello :)
IMO, this will be helpful for accident situations when plugin is off and your elements have specific styles for parallax.
For example, your element without parallax should be at position {top: 10px} and with parallax - at {top: -10px}.

@jsnanigans
Copy link
Owner

jsnanigans commented Nov 3, 2017

Hey
I like the idea but I think the class should be prefixed with something by default, maybe instead of parallaxed something like vp-parallaxed. And then in the make it possible to customize the class in the options:

Vue.use(VueParallaxJs, {
  activeClass: 'parallaxed'
})

@jsnanigans
Copy link
Owner

Hey I have done some updates yesterday and have added this option, by default there is no class vlbut you can add it in the options. Thanks.

@jsnanigans jsnanigans closed this Nov 30, 2017
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.

None yet

2 participants