pixelcog/parallax.js

How to use this plugin with background-image

Closed this issue · 3 comments

Maybe I'm missing something here, but it seems like there is no way to use this plugin with the CSS background-image property. This would be great for using with background-size: cover.

should be working when using the html version. make sure to set a minimum height for the parallax-window and the element with the background.

<div class="parallax-window">
  <div class="parallax-slider">
    <div class="with-background-image">Div with background image and minimum height</div>
  </div>
</div>
$('.parallax-window').parallax();

@wstoettinger where can I find the styles for those classes in the mark-up?

@dspacejs natively this library doesn't use styles. It just uses the class names to identify the elements.