Photo: Tweak reveal animations and fix horizontal scroll

- Photo number doesn't jumps anymore (now reveals based on photo not the number)
- Properly reveal title locations lines
- Optimize code
This commit is contained in:
2020-04-06 12:14:48 +02:00
parent bd9b91f480
commit 60fdf02112
4 changed files with 67 additions and 50 deletions

View File

@@ -53,15 +53,10 @@
.photo {
position: relative;
z-index: 4;
margin-bottom: 88px;
@include breakpoint (sm) {
margin-bottom: 120px;
}
// Last photo doesn't need spacing
&:last-child {
margin-bottom: 0;
padding-bottom: 0;
}
}
@@ -79,6 +74,12 @@
// Photo
.photo {
padding-bottom: 80px;
@include breakpoint (sm) {
padding-bottom: 120px;
}
// Even photos
&:nth-child(even) {
@include breakpoint (sm) {