Files
004.erp.generic/frontend/src/components/ui/AnimatedPage.jsx
mariomitte 5d39e048ba
Some checks failed
ERP CI Pipeline / test (push) Has been cancelled
prvi kod za live uporabu
2026-07-09 21:21:17 +02:00

16 lines
477 B
JavaScript

import { animated, useSpring } from '@react-spring/web';
export default function AnimatedPage({ children, className = '' }) {
const pageStyle = useSpring({
from: { opacity: 0, transform: 'translate3d(0,10px,0)' },
to: { opacity: 1, transform: 'translate3d(0,0,0)' },
config: { tension: 210, friction: 24 },
});
return (
<animated.div style={pageStyle} className={className}>
{children}
</animated.div>
);
}