MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / applyTransform

Function applyTransform

src/content/Components/DomeGallery/DomeGallery.jsx:161–166  ·  view source on GitHub ↗
(xDeg, yDeg)

Source from the content-addressed store, hash-verified

159 const items = useMemo(() => buildItems(images, segments), [images, segments]);
160
161 const applyTransform = (xDeg, yDeg) => {
162 const el = sphereRef.current;
163 if (el) {
164 el.style.transform = `translateZ(calc(var(--radius) * -1)) rotateX(${xDeg}deg) rotateY(${yDeg}deg)`;
165 }
166 };
167
168 const lockedRadiusRef = useRef(null);
169

Callers 2

DomeGalleryFunction · 0.70
stepFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected