diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-22 16:54:34 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-22 16:54:34 +0700 |
| commit | 3c020236bd95ba485cc7cfb8b11e5972c49bb7b5 (patch) | |
| tree | 970c00b6aabcbc000e9a54be8e2d8ffdecefbd36 /src/components/ui/AnimateOnLoad.jsx | |
| parent | 8080c415e466ce29d0f7c29284c3a8537c6b237d (diff) | |
delete animation on load
Diffstat (limited to 'src/components/ui/AnimateOnLoad.jsx')
| -rw-r--r-- | src/components/ui/AnimateOnLoad.jsx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/components/ui/AnimateOnLoad.jsx b/src/components/ui/AnimateOnLoad.jsx deleted file mode 100644 index fb9919e1..00000000 --- a/src/components/ui/AnimateOnLoad.jsx +++ /dev/null @@ -1,25 +0,0 @@ -import classNames from 'classnames' -import { motion } from 'framer-motion' - -/** - * Animate On Load - * @param {object} props - * @param {string} props.className - Container class - */ -const AnimateOnLoad = (props) => { - const { className: propsClassName, children } = props - - const combinedClassName = classNames(propsClassName) - - return ( - <motion.div - initial={{ opacity: 0 }} - animate={{ opacity: 1, transition: { duration: 0.3 } }} - className={combinedClassName} - > - {children} - </motion.div> - ) -} - -export default AnimateOnLoad |
