diff --git a/src/animations/Photo.js b/src/animations/Photo.js index 6174c4e..a900a19 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 span'), + targets: scope.querySelector('.photo__number span'), onShown (el) { const translate = anime({ targets: el, diff --git a/src/style/organisms/_photos.scss b/src/style/organisms/_photos.scss index 61cf25a..9bd4a0e 100644 --- a/src/style/organisms/_photos.scss +++ b/src/style/organisms/_photos.scss @@ -198,7 +198,7 @@ h2 { font-size: rem(28px); - margin-top: 28px; + margin-top: 24px; white-space: normal; }