I have a problem. I am toggling class with: "header.classList.toggle("fixed-header", d <…
Jump to turn (14)
- 1I have a problem. I am toggling class with: "header.classList.toggle("fixed-head
- 2no I can not remove it my css is defined as this: " .fixed-header { @apply fixed
- 3ok wait isn't it opposite I did opposite and it worked.
- 4the source control takes too much resource on my VSCode. I always see the tiny s
- 5how can I second not to a:not(.button)
- 6I want to add not:dark
- 7okay, I have another problem. This is big. I am having this run at all times and
- 8checkJs is already false. Memory is 4gb. This is my tsconfig.json: "{ "extends":
- 9I think excluding worked. Wasn't node-modules excluded automatically ?
- 10what is user agent stylesheet
- 11using astro and preact and tailwind, how can I make a section to be scrolled in
- 12this didnt work
- 13can you tell me what makes button of theme-switcher astro rotate in this project
- 14okay so back to scroll thing. I want to scroll 100vh in one scroll and also I wa
- User
I have a problem. I am toggling class with: "header.classList.toggle("fixed-header", d < 0);". However it does not override the bottom-0 class that was already defined: "<header id="page-header" class="absolute bottom-0 z-20 flex w-full items-center justify-between border-b border-transparent px-8 py-4 text-white"
"
- Assistant
To override the "bottom-0" class, you can remove it using the "classList.remove()" method before toggling the "fixed-header" class. Here's an updated code snippet:
codeheader.classList.remove("bottom-0"); header.classList.toggle("fixed-header", d < 0);This will ensure that only one class is applied to the header element at a time.
- User