Added loader and counter animations (#4931)
Added loader animation: https://github.com/twentyhq/twenty/assets/102751374/c569762a-f512-4995-ac4d-47570bacdcaa Added counter animation: https://github.com/twentyhq/twenty/assets/102751374/7d96c625-b56a-4ef6-8042-8e71455caf67 Co-authored-by: Ady Beraud <a.beraud96@gmail.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
|
||||
const containerVariants = {
|
||||
hidden: { opacity: 0, y: 20 },
|
||||
visible: {
|
||||
opacity: 1,
|
||||
y: 0,
|
||||
transition: { duration: 0.2, ease: 'easeOut' },
|
||||
},
|
||||
};
|
||||
|
||||
const MotionContainer = ({ children }: { children?: React.ReactNode }) => (
|
||||
<motion.div variants={containerVariants} initial="hidden" animate="visible">
|
||||
{children}
|
||||
</motion.div>
|
||||
);
|
||||
|
||||
export default MotionContainer;
|
||||
Reference in New Issue
Block a user