diff --git a/src/animations/Photo.js b/src/animations/Photo.js index 5d5311d..6174c4e 100644 --- a/src/animations/Photo.js +++ b/src/animations/Photo.js @@ -46,7 +46,7 @@ export const animateIn = scope => { const nbParallax = nbParallaxMedia => { if (nbParallaxMedia.matches) { const scroll = ScrollOut({ - targets: scope.querySelector('#photo_number'), + targets: scope.querySelector('.photo_number span'), onShown (el) { const translate = anime({ targets: el, diff --git a/src/molecules/Photo.svelte b/src/molecules/Photo.svelte index dd321d7..58a6140 100644 --- a/src/molecules/Photo.svelte +++ b/src/molecules/Photo.svelte @@ -73,7 +73,7 @@ {formatDate(photo.date, 'FULL')}