Place: Use Rellax to add some parallax effects

- Added on title, switcher button and illustration
- Not very suitable for photo number
This commit is contained in:
2020-04-19 12:49:38 +02:00
parent 06c1475c5f
commit c1bb2f31bc
5 changed files with 41 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
import anime from 'animejs'
import Rellax from 'rellax'
import { animDuration, animDelay } from 'utils/store'
@@ -52,4 +53,10 @@ export const animateIn = () => {
translateY: [24, 0],
translateZ: [0, 0]
}, 450)
}
/*
** Parallax
*/
const rellax = new Rellax('[data-rellax-speed]')
}