🐛 Setup page transitions
Bugged for some reason, the old page stays before the new page loading at the end
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
.location-page__intro {
|
||||
position: relative;
|
||||
background: $color-primary;
|
||||
// padding-top: clamp(100px, 25vw, 400px);
|
||||
|
||||
@include bp (sm) {
|
||||
padding-top: clamp(40px, 14vw, 320px);
|
||||
@@ -154,19 +153,29 @@
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: clamp(320px, 100vw, 2560px);
|
||||
height: 100%;
|
||||
background: 0 0 var(--illus-mobile) no-repeat;
|
||||
background-size: 100% auto;
|
||||
transform: translate3d(-50%, 0, 0);
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
transform-origin: top center;
|
||||
|
||||
div {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: 0 0 var(--illus-mobile) no-repeat;
|
||||
background-size: 100% auto;
|
||||
transform: translate3d(0, var(--parallax-y), 0);
|
||||
transition: transform 0.7s var(--ease-quart);
|
||||
will-change: transform, opacity;
|
||||
|
||||
@include bp (sm) {
|
||||
background-image: var(--illus-desktop);
|
||||
}
|
||||
@include bp (xl) {
|
||||
background-image: var(--illus-desktop-2x);
|
||||
@include bp (sm) {
|
||||
background-image: var(--illus-desktop);
|
||||
}
|
||||
@include bp (xl) {
|
||||
background-image: var(--illus-desktop-2x);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user