Photo: Fix Number parallax and Location margins
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 span'),
|
targets: scope.querySelector('.photo__number span'),
|
||||||
onShown (el) {
|
onShown (el) {
|
||||||
const translate = anime({
|
const translate = anime({
|
||||||
targets: el,
|
targets: el,
|
||||||
|
|||||||
@@ -198,7 +198,7 @@
|
|||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: rem(28px);
|
font-size: rem(28px);
|
||||||
margin-top: 28px;
|
margin-top: 24px;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user