MCPcopy Create free account
hub / github.com/code100x/cms / getDirection

Function getDirection

src/components/ui/infinite-moving-cards.tsx:45–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44 }
45 const getDirection = () => {
46 if (containerRef.current) {
47 if (direction === 'left') {
48 containerRef.current.style.setProperty(
49 '--animation-direction',
50 'forwards',
51 );
52 } else {
53 containerRef.current.style.setProperty(
54 '--animation-direction',
55 'reverse',
56 );
57 }
58 }
59 };
60 const getSpeed = () => {
61 if (containerRef.current) {
62 if (speed === 'fast') {

Callers 1

addAnimationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected