Run page animations onMount instead of browser
This commit is contained in:
@@ -113,7 +113,7 @@ export const getRandomElement = (array: any[]): any => {
|
||||
/**
|
||||
* Get a DOM element's position
|
||||
*/
|
||||
export const getPosition = (node, scope?: HTMLElement) => {
|
||||
export const getPosition = (node: any, scope?: HTMLElement) => {
|
||||
const root = scope || document
|
||||
let offsetTop = node.offsetTop
|
||||
let offsetLeft = node.offsetLeft
|
||||
|
||||
Reference in New Issue
Block a user