Bob AI: Implement a 3D parallax effect on the feature cards within t

This commit is contained in:
kudinDmitriyUp
2026-04-16 06:12:33 +00:00
parent 6d3a8c3e19
commit 688d670892

View File

@@ -1,4 +1,4 @@
import { useState, useEffect, type RefObject } from "react";
import { useState, useEffect, RefObject } from "react";
export const useParallax = (ref: RefObject<HTMLElement>, options?: { maxRotate?: number }) => {
const [transform, setTransform] = useState("rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)");