Ted
TTCTheo's Typesafe Cult
•Created by Ted on 2/15/2024 in #questions
Next wont load images.
Hello,
I have an image on my site where the path is generated though a function.
It returns:
It will never load unless I open up the image in a new tab and then go back... I am assuming this is similar to how you cant add tailwind classes.. What is the best way to fix this? Is there a way to have a folder of images be preloaded?
4 replies
TTCTheo's Typesafe Cult
•Created by Ted on 12/15/2023 in #questions
Target the "stuck" or pinned elements with tailwindCSS.
Hello, if I have an element that has the position: sticky, and I would like to change the style based on weather it is pinned at the limit or not. Is this possible with just tailwind? If not what is the best approach?
3 replies
TTCTheo's Typesafe Cult
•Created by Ted on 2/8/2023 in #questions
Tailwind smooth scroll
Hello,
It is probably super simple but I have a simple react app in vite, the app.tsx looks like this
If I click on an anchor that has #about for example it just jumps instantly, everything online says it should be scroll-smooth.
6 replies