apertureless / vue-parallax

🌌 Vue.js component for parallax image scroll effects
MIT License
638 stars 88 forks source link

Can't use it with Vuetify? #41

Closed MuhaddiMu closed 5 years ago

MuhaddiMu commented 5 years ago

I want to use it with Vuetify as Vuetify parallax doesn't allow so many options. Using vue-parallax inside Vuetify breaks things and doesn't work as expected.

Any help would be highly valued

apertureless commented 5 years ago

What do you mean with, it breaks ? Can you maybe provide a small codepen for reproduction?

MuhaddiMu commented 5 years ago

@apertureless Thank you for your response.

Here is the code sandbox, https://codesandbox.io/s/vuetify-playground-gd9lf

By breaking, I mean that the <parallax> content is not showing up. It's just showing a blank screen. It looks like Vuetify is overriding the styles. Any possible fix to this?

apertureless commented 5 years ago

Thanks for the sandbox. It seems to be an css (z-index) issue. Because your container is overlapping everything.

If you add

position: realtive;
z-index: 0

to your container class, it is fixed.

The parallax effect relys currently heavily on css styling. So it can often come to problems.

Bildschirmfoto 2019-11-21 um 12 27 31