mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 11:03:50 +00:00
remove stagger effect
This commit is contained in:
@@ -35,19 +35,12 @@ function Header() {
|
|||||||
<AnimatePresence>
|
<AnimatePresence>
|
||||||
{mounted && (
|
{mounted && (
|
||||||
<motion.div
|
<motion.div
|
||||||
initial="hidden"
|
initial={{ opacity: 0 }}
|
||||||
animate="visible"
|
animate={{ opacity: 1 }}
|
||||||
exit="hidden"
|
exit={{ opacity: 0 }}
|
||||||
variants={{
|
className="flex items-center"
|
||||||
visible: {
|
|
||||||
opacity: 1,
|
|
||||||
transition: { staggerChildren: 0.1 }
|
|
||||||
},
|
|
||||||
hidden: { opacity: 0 }
|
|
||||||
}}
|
|
||||||
className="flex space-x-1"
|
|
||||||
>
|
>
|
||||||
{tabs.map((tab, index) => (
|
{tabs.map((tab) => (
|
||||||
<Link key={tab.id} href={`/${tab.id}`} passHref>
|
<Link key={tab.id} href={`/${tab.id}`} passHref>
|
||||||
<motion.a
|
<motion.a
|
||||||
onClick={() => setActiveTab(tab.id)}
|
onClick={() => setActiveTab(tab.id)}
|
||||||
|
|||||||
Reference in New Issue
Block a user