Place: Add photo Transition In, Add Illustration system, Visual fixes

- Add a transition in on each photo component (scale down + fade in), TODO: Parallax on number
- Illustration takes two images and changes the source depending on the viewport size
This commit is contained in:
2020-03-10 21:25:48 +01:00
parent eb529b196e
commit debd9a41c1
6 changed files with 120 additions and 31 deletions

View File

@@ -1,22 +1,28 @@
// Place section
.place {
position: relative;
background-position: 50% 0;
background-size: 100%;
background-repeat: no-repeat;
overflow-x: hidden;
// Title
&__title {
position: relative;
z-index: 2;
padding: pxVW(400) 0 pxVW(400);
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
align-items: center;
padding: pxVW(350) 0 pxVW(200);
text-align: center;
@media screen and (orientation: portrait) and (max-width: $screen-xs) {
height: 144vw;
padding: 0;
}
@include breakpoint (sm) {
padding: pxVW(224) 0 pxVW(240);
flex-direction: row;
align-items: flex-end;
padding: pxVW(208) 0 pxVW(320);
height: auto;
}
@include breakpoint (xxl) {
padding-top: 240px;
@@ -26,7 +32,8 @@
h1 {
position: relative;
z-index: 2;
text-align: left;
text-align: center;
display: inline-block;
pointer-events: none;
.anim-translate {
@@ -37,16 +44,22 @@
&_bottom {
text-align: right;
margin-left: pxVW(128);
@include breakpoint (xl) {
margin-left: 128px;
}
}
// Switcher button
.button-control--dashed {
.button-control {
z-index: 1;
margin: 32px auto 0;
flex-shrink: 0;
margin-left: -12px;
@include breakpoint (sm) {
margin-left: -24px;
margin-right: 0;
margin-top: 0;
}
}
}
@@ -146,7 +159,13 @@
left: 0;
width: 100%;
height: 100%;
background: url(/img/illustration.png) 0 0 no-repeat;
background-image: var(--url-mobile);
background-position: 0 0;
background-repeat: no-repeat;
background-size: 100% auto;
@include breakpoint (sm) {
background-image: var(--url-desktop);
}
}
}