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:
@@ -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]')
|
||||
}
|
||||
Reference in New Issue
Block a user