jsnanigans / vue-parallax-js

Tiny vue component that adds a directive for parallax effect on elements.
120 stars 19 forks source link

any way to reposition element #11

Closed sebastianjung closed 6 years ago

sebastianjung commented 6 years ago

Hey there,

is there any way to reposition the element because after i applied v-parallax to it it has a different position. It is slightly lower positioned than withough the directive on it.

I could archive this of course by using css but it is a hassle to do this on every element i want to have the parallax effect on.

Any help would be appreciated :)

Greetings and thanks in advance,

Sebastian Jung

jsnanigans commented 6 years ago

Hey, you can try to use <h1 v-parallax.absY="0.2">vue-parallax-js</h1> that solved some of those problems for me, but if that does not work i'm not sure what you could do

sebastianjung commented 6 years ago

Thanks for your quick answer!

I actually tried both of the modifiers but none of them seem to work/help :/

Thanks anyway!

jsnanigans commented 6 years ago

I usually use margin or relative positioning to compensate