Photo: Fix usage of same ID for transition

This commit is contained in:
2020-03-29 19:20:48 +02:00
parent 1e323ca8a9
commit 3e6a35f78f
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ export const animateIn = scope => {
const nbParallax = nbParallaxMedia => { const nbParallax = nbParallaxMedia => {
if (nbParallaxMedia.matches) { if (nbParallaxMedia.matches) {
const scroll = ScrollOut({ const scroll = ScrollOut({
targets: scope.querySelector('#photo_number'), targets: scope.querySelector('.photo_number span'),
onShown (el) { onShown (el) {
const translate = anime({ const translate = anime({
targets: el, targets: el,

View File

@@ -73,7 +73,7 @@
{formatDate(photo.date, 'FULL')} {formatDate(photo.date, 'FULL')}
</time> </time>
<div class="photo__number"> <div class="photo__number">
<span id="photo_number">{photoIndex}</span> <span>{photoIndex}</span>
</div> </div>
</div> </div>
</div> </div>