From 4a7edfe4d3533cefef2c51b41b367d4b66ef770f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Tue, 30 Nov 2021 19:48:56 +0100 Subject: [PATCH] Add photo Viewer entering animation --- .../[country]/[location]/[photo].svelte | 78 ++++++++++++++++++- src/style/pages/_viewer-photo.scss | 1 + 2 files changed, 75 insertions(+), 4 deletions(-) diff --git a/src/routes/[country]/[location]/[photo].svelte b/src/routes/[country]/[location]/[photo].svelte index 5541180..11afbb5 100644 --- a/src/routes/[country]/[location]/[photo].svelte +++ b/src/routes/[country]/[location]/[photo].svelte @@ -1,7 +1,8 @@ - - {(currentPhotoIndex < 10) ? '0' : ''}{currentPhotoIndex} - + +
+ +
diff --git a/src/style/pages/_viewer-photo.scss b/src/style/pages/_viewer-photo.scss index 81b9625..cd86dbe 100644 --- a/src/style/pages/_viewer-photo.scss +++ b/src/style/pages/_viewer-photo.scss @@ -300,6 +300,7 @@ white-space: nowrap; pointer-events: none; user-select: none; + overflow: hidden; @include bp (md, max) { font-size: clamp(#{rem(80px)}, 24vw, #{rem(120px)});