MCPcopy
hub / github.com/adrianhajdin/project_3D_developer_portfolio / fadeIn

Function fadeIn

src/utils/motion.js:19–38  ·  view source on GitHub ↗
(direction, type, delay, duration)

Source from the content-addressed store, hash-verified

17};
18
19export const fadeIn = (direction, type, delay, duration) => {
20 return {
21 hidden: {
22 x: direction === "left" ? 100 : direction === "right" ? -100 : 0,
23 y: direction === "up" ? 100 : direction === "down" ? -100 : 0,
24 opacity: 0,
25 },
26 show: {
27 x: 0,
28 y: 0,
29 opacity: 1,
30 transition: {
31 type: type,
32 delay: delay,
33 duration: duration,
34 ease: "easeOut",
35 },
36 },
37 };
38};
39
40export const zoomIn = (delay, duration) => {
41 return {

Callers 5

FeedbackCardFunction · 0.90
ServiceCardFunction · 0.90
AboutFunction · 0.90
ProjectCardFunction · 0.90
WorksFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected