serpcompany / serp-ui-nuxt

https://serp-ui-nuxt.pages.dev/
1 stars 0 forks source link

Fixed multiheader scroll #42

Closed 2-fly-4-ai closed 2 weeks ago

2-fly-4-ai commented 2 weeks ago

Explanation of Changes: Added fixed top-0 left-0 w-full bg-white z-50 to the :class directive: fixed: Makes the header fixed to the top of the viewport. top-0 left-0: Positions the header at the top-left corner. w-full: Makes the header take up the full width of the viewport. bg-white: Sets the background color to white (or your desired background color). z-50: Ensures the header is above other content. With this change, the header will smoothly transition to a fixed position when the user scrolls down, preventing the jumping effect.