Compare commits
5 Commits
version_6_
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 014f2cf1c6 | |||
|
|
d9c74ddab9 | ||
|
|
eaa26d9599 | ||
|
|
688d670892 | ||
| 6d3a8c3e19 |
@@ -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