MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / getClassNamesByDirection

Function getClassNamesByDirection

apps/web/ui/FadeIn/index.tsx:9–21  ·  view source on GitHub ↗
(direction: FadeDirection)

Source from the content-addressed store, hash-verified

7type FadeDelay = 0 | 100 | 200 | 300 | 500 | 700 | 1000;
8
9const getClassNamesByDirection = (direction: FadeDirection) => {
10 switch (direction) {
11 case 'right':
12 return [styles._translateX4, styles.translateX0];
13 case 'left':
14 return [styles.translateX4, styles.translateX0];
15 case 'down':
16 return [styles._translateY4, styles.translateY0];
17 case 'up':
18 default:
19 return [styles.translateY4, styles.translateY0];
20 }
21};
22
23const getClassNameByDelay = (delay: FadeDelay) => {
24 switch (delay) {

Callers 1

FadeInFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected