Style and animations fixes
- Add a requestAnimationFrame for TitleSite (would not fire from a location to credits/choose) - Center and adjust parallax scroll for massive titles - Place illustration: max width and center
This commit is contained in:
@@ -7,6 +7,11 @@
|
||||
.title-parallax {
|
||||
margin-top: -#{pxVW(160)};
|
||||
margin-left: -#{pxVW(160)};
|
||||
|
||||
@include breakpoint (1920px) {
|
||||
margin-top: -160px;
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
// Description
|
||||
|
||||
@@ -167,13 +167,14 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
max-width: 1920px;
|
||||
height: 100%;
|
||||
will-change: transform, opacity;
|
||||
|
||||
.parallax {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: 1760px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
&_img {
|
||||
position: relative;
|
||||
|
||||
Reference in New Issue
Block a user