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

Header Transition Broken #107

Closed
ramadanomar opened this issue Oct 15, 2023 · 2 comments · Fixed by #138
Closed

Header Transition Broken #107

ramadanomar opened this issue Oct 15, 2023 · 2 comments · Fixed by #138

Comments

@ramadanomar
Copy link

64d405c4a9ff8843fb5e8f82ab827e2f.mp4

Can be fixed by removing the transition class. Thanks for this project! I've been using it to get inspiration on more clean coding practices w/ RSC & Next13 Server Actions!

<header
	className={cn(
		"sticky top-0 z-30  w-full bg-transparent ",
		scrolled ? " h-16 border-b backdrop-blur-xl" : " h-20"
	)}
>
@ramadanomar
Copy link
Author

Or you can set scroll value to 0 which also fixes some other problems with it glitching like this

const scrolled = useScroll(0);

@moinulmoin
Copy link
Owner

Thanks for pointing out!

@moinulmoin moinulmoin linked a pull request Dec 5, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants