Fix the locations list filters and add reveal transitions

Typically add a delay between two click (Limiter) to click again. Thanks Nico!
This commit is contained in:
2020-02-26 15:56:22 +01:00
parent 042440188e
commit c9b1f63c64
5 changed files with 110 additions and 47 deletions

View File

@@ -101,6 +101,40 @@
}
// Location reveal
[data-aos="location"] {
img {
opacity: 0;
transform: scale(1.15);
transition: opacity 0.6s $ease-quart, transform 0.6s $ease-quart;
will-change: opacity, transform;
}
h3, p {
transform: translateY(150%);
transition: transform 0.6s $ease-quart;
will-change: transform;
}
h3 {
transition: all 0.6s $ease-quart;
transition-delay: 100ms;
}
p {
transition-delay: 200ms;
}
&.aos-animate {
img {
opacity: 1;
transform: scale(1);
}
h3, p {
transform: translateY(0);
}
}
}
/* ==========================================================================
KEYFRAMES ANIMATIONS

View File

@@ -37,12 +37,13 @@
// Locations
&__locations {
min-height: 200px;
margin-top: 112px;
@include breakpoint (sm) {
display: flex;
// display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
// grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
grid-column-gap: 120px;
grid-row-gap: pxVW(120);
justify-content: center;
@@ -59,7 +60,12 @@
margin-bottom: 48px;
@include breakpoint (sm) {
margin-bottom: 0;
margin-left: pxVW(72);
margin-right: pxVW(72);
}
@include breakpoint (xl) {
margin-left: 72px;
margin-right: 72px;
}
a {
@@ -82,17 +88,26 @@
// City
&__city {
margin: 24px 0 16px;
font-family: $font-serif;
font-size: rem(32px);
color: $color-secondary;
transition: color 85ms ease-in-out;
@include breakpoint (sm) {
font-size: rem(48px);
}
}
.mask-city {
height: 40px;
margin: 24px 0 16px;
@include breakpoint (sm) {
height: 64px;
margin-bottom: 24px;
}
}
.mask-country {
height: 16px;
}
// Shape on hover
&:after {