enlighten-qalb / src /styles /animations.js
eli02's picture
feat: Implement MainLayout component for consistent layout structure
3299552
raw
history blame contribute delete
860 Bytes
import { keyframes } from '@emotion/react';
export const fadeIn = keyframes`
from {
opacity: 0;
}
to {
opacity: 1;
}
`;
export const slideUp = keyframes`
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
`;
export const pulse = keyframes`
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
`;
export const spiritualGlow = keyframes`
0% {
box-shadow: 0 0 5px rgba(63, 81, 181, 0.5);
}
50% {
box-shadow: 0 0 20px rgba(63, 81, 181, 0.8);
}
100% {
box-shadow: 0 0 5px rgba(63, 81, 181, 0.5);
}
`;
export const pageTransition = {
enter: {
opacity: 0,
animation: `${fadeIn} 0.5s ease forwards`,
},
exit: {
opacity: 1,
animation: `${fadeIn} 0.5s ease reverse`,
},
};