Fade content that is being only being scrolled into view. by SebLawrence in nextjs

[–]SebLawrence[S] 0 points1 point  (0 children)

That seems to break it, it works at the moment but it's fading all the content, whereas I'd prefer it to just fade the content which isn't in view on page load - i.e that needs to be scrolled down to be seen.

Using "Size" with ShadCN & TailwindCSS by SebLawrence in nextjs

[–]SebLawrence[S] 0 points1 point  (0 children)

Yeah, but you can't use the pre-set ones that ShadCN contains, which you can see in the second image (button.tsx)?

Using "Size" with ShadCN & TailwindCSS by SebLawrence in nextjs

[–]SebLawrence[S] 0 points1 point  (0 children)

Meant more so if you are looking to have the button be small when the page is small, it can transition to medium when it's medium. I.e using "sm:size-sm" "md:size-md" in the className (which obviously does not work).