Photo: Fix usage of same ID for transition
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user