Skip to content

Instantly share code, notes, and snippets.

@vikrantnegi
Created December 21, 2015 07:46
Show Gist options
  • Save vikrantnegi/cd69bc8c12d2d721f598 to your computer and use it in GitHub Desktop.
Save vikrantnegi/cd69bc8c12d2d721f598 to your computer and use it in GitHub Desktop.
Select all the layers
div[class*="layer-"] {
position: absolute;
top: -10px; left: -10px;
right: -10px; bottom: -10px;
background-size: 100% auto;
background-repeat: no-repeat;
background-position: 0 0;
transition:0.1s;
}
<div class="poster">
<div class="shine"></div>
<div class="layer-1"></div>
<div class="layer-2"></div>
<div class="layer-3"></div>
<div class="layer-4"></div>
<div class="layer-5"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment