Modesta v4.0.0

Parallax

A banner with a fixed, blurred background image and centred content on top. Set the background image on parallax yourself.

ClassDescription
parallax-containerWraps the background and the content
parallaxThe background, 20em tall
parallax.small15em tall
parallax.medium26em tall
parallax.large33em tall
contentContent centred over the background
<div class="parallax-container">
  <div class="parallax small" style="background-image: linear-gradient(135deg, #e67e22, #9b59b6)"></div>
  <div class="content"><h1>Content on top</h1></div>
</div>

Source: scss/components/objects/_parallax.scss