Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Animation Dosent work ( A Transform:none style adding to the motion component ) #2641

Open
Tenuka22 opened this issue Apr 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Tenuka22
Copy link

<nav id="nav-bar" class="fixed left-0 top-0 z-50 grid h-24 w-full grid-cols-[0.8fr,2fr,1fr] grid-rows-1 place-content-start bg-background/90 px-6 text-sm text-foreground shadow-sm" style="transform: none;"></nav>

Motion Components add a transform:none style, Not all the motion components specificlly the ones that has 'fixed' position ( in my project )

<motion.nav initial={{ translateY: "-100%", scaleY: 0.8 }} animate={{ translateY: 0, scaleY: 1, }} transition={{ duration: 0.4, delay: 0.1, type: "spring", stiffness: 30, }} id="nav-bar" className="fixed left-0 top-0 z-50 grid h-24 w-full grid-cols-[0.8fr,2fr,1fr] grid-rows-1 place-content-start bg-background/90 px-6 text-sm text-foreground shadow-sm" >

`@tailwind base;

@tailwind components;
@tailwind utilities;

@layer base {
body {
@apply min-h-screen bg-background/95 font-poppins text-foreground selection:bg-foreground/30;
}
main {
@apply relative h-full w-full pt-24;
}
}
`
This isnt a motion.nav self closed tag there are items but I only added the nav ,

@Tenuka22 Tenuka22 added the bug Something isn't working label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant