Hi! I need help trying to figure out where my code mistake is at… in resume I am trying to achieve the following.
https://www.youtube.com/watch?v=ntg6tbGxP3k
So I added this code to my index.liquid folder
Parallax Mousemove Effect | Change Background Position On MousemoveSpace
Background
and this one to my theme.css folder
body
.page-container
{
font-family: “Segoe UI”, sans-serif;
background: url(https://cdn.shopify.com/s/files/1/0629/0548/3520/files/bg.png?v=1645772573)no-repeatno-repeat);
background-size: cover;
height: 100vh;
}
.container{
position: relative;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.container img{
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
object-fit: contain;
}
.container h2{
z-index: 1;
position: relative;
color: #fff;
font-size: 90px;
text-transform: uppercase;
font-weight: 900;
letter-spacing: 32px;
line-height: 60px;
}
.container h2 span{
font-size: 48px;
font-weight: 500;
letter-spacing: 10px;
}
@media (max-width:800px){
.container h2{
font-size: 60px;
letter-spacing: 19px;
line-height: 35px;
}
.container h2 span{
font-size: 26px;
}
}
this is my result… https://wzfgosbw0n3lnd56-62905483520.shopifypreview.com
as you can see I am not doing something correct somewhere, because the size of everything seems to be a lot smaller than in the video so I would greatly appreciate the help in fixing the errors.
Thank you for the help in advance.