Merge version_7_1776319843781 into main
Merge version_7_1776319843781 into main
This commit was merged in pull request #7.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useState, useEffect, type RefObject } from "react";
|
||||
|
||||
export const useParallax = (ref: RefObject<HTMLElement>, options?: { maxRotate?: number }) => {
|
||||
export const useParallax = (ref: RefObject<HTMLElement | null>, options?: { maxRotate?: number }) => {
|
||||
const [transform, setTransform] = useState("rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)");
|
||||
const maxRotate = options?.maxRotate || 5;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user