diff --git a/components/skeletons/second.tsx b/components/skeletons/second.tsx new file mode 100644 index 0000000..9c999ca --- /dev/null +++ b/components/skeletons/second.tsx @@ -0,0 +1,71 @@ +"use client"; +import { stagger, useAnimate } from "framer-motion"; +import React, { useState } from "react"; + +export const SkeletonTwo = () => { + const [scope, animate] = useAnimate(); + const [animating, setAnimating] = useState(false); + + const handleAnimation = async () => { + if (animating) return; + + setAnimating(true); + await animate( + ".message", + { + opacity: [0, 1], + y: [20, 0], + }, + { + delay: stagger(0.5), + } + ); + setAnimating(false); + }; + return ( +