feat: add a oarallax bg to make everything dark

This commit is contained in:
HarshKhandeparkar 2020-06-08 03:03:36 +05:30
parent b4290d9ac1
commit 6cd83ec786
2 changed files with 13 additions and 2 deletions

View file

@ -53,7 +53,8 @@
<!-- globalParallax -->
<div class="parallax" id="global-parallax">
<img src="./img/lbry_background_art.png" alt="bg-img" class="parallax-img" />
<div class="parallax-mask" style="background-color: rgb(30, 100, 230); opacity: 0.5;"></div>
<div class="parallax-mask"></div>
<div class="parallax-bg"></div>
<!-- globalParallaxContent -->
<div class="parallax-content">

View file

@ -44,7 +44,7 @@ html {
}
.parallax .parallax-mask {
z-index: 0;
z-index: 1;
position: absolute;
width: 100%;
height: 100%;
@ -68,10 +68,20 @@ html {
width: 100%;
height: 100%;
margin: 0;
position: absolute;
}
#global-parallax .parallax-mask {
position: fixed;
background-color: rgb(30, 100, 230);
opacity: 0.5;
}
#global-parallax .parallax-bg {
position: fixed;
height: 100%;
background-color: black;
opacity: 1;
}
#global-parallax {