Consistent parallax size; Debugging /null requests, is Spotify the culprit?

This commit is contained in:
James Barnsley
2018-10-31 21:48:32 +13:00
parent fc0bf76f0a
commit 192b1bed88
11 changed files with 10374 additions and 13607 deletions

View File

@ -3,16 +3,24 @@ $parallax: 'parallax';
.#{$parallax} {
overflow: hidden;
position: absolute;
top: -10%;
right: -10px;
left: -10px;
height: 110%;
transform: translateZ(-50px) scale(2);
transform-origin: bottom center;
z-index: -1;
top: 0;
left: 0;
right: 0;
height: 100%;
max-height: 80vh;
transform: translateZ(-200px) scale(1.2);
transform-origin: top center;
z-index: -1;
background-color: lighten(colour(dark_grey), 10%);
&__inner {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
}
&__image {
@include animate(0.5s);
position: absolute;