fierce-application-41107
09/01/2022, 2:56 PMfierce-application-41107
09/01/2022, 2:56 PMfierce-application-41107
09/01/2022, 2:57 PMworried-hair-75253
09/01/2022, 3:05 PMpowerful-helmet-42757
09/01/2022, 3:13 PMpowerful-helmet-42757
09/01/2022, 3:23 PMmysterious-toddler-20573
09/01/2022, 3:36 PMpowerful-helmet-42757
09/01/2022, 3:40 PMmysterious-toddler-20573
09/01/2022, 3:41 PMmysterious-toddler-20573
09/01/2022, 3:41 PMmysterious-toddler-20573
09/01/2022, 3:41 PMmysterious-toddler-20573
09/01/2022, 3:42 PMpowerful-helmet-42757
09/01/2022, 3:43 PMsparse-camera-76537
09/01/2022, 5:40 PMmysterious-toddler-20573
09/01/2022, 5:58 PMminiature-lizard-24702
09/01/2022, 6:29 PMmysterious-toddler-20573
09/01/2022, 6:30 PMminiature-lizard-24702
09/01/2022, 6:30 PMminiature-lizard-24702
09/01/2022, 6:33 PMminiature-lizard-24702
09/01/2022, 6:33 PMminiature-lizard-24702
09/01/2022, 6:33 PMminiature-lizard-24702
09/01/2022, 6:34 PMproud-librarian-99598
09/01/2022, 6:34 PMproud-librarian-99598
09/01/2022, 6:35 PM<input id="search-input"
name="q"
type="text"
class="focus:shadow-outline block h-8 w-64 rounded-full border-gray-300 bg-gray-800 pl-10 focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"
placeholder="Search"
hx-trigger="keyup changed delay:500ms"
hx-target="#search-results"
hx-swap="outerHTML"
hx:get="@{/movies/search}"
/>
Trying to build an active search demo. I can handle it on the server as well, but it would be nice if I could somehow avoid the call in the first place.proud-librarian-99598
09/01/2022, 6:50 PM.htmx-indicator{
opacity:0;
transition: opacity 100ms ease-in;
}
.htmx-request .htmx-indicator{
opacity:1
}
.htmx-request.htmx-indicator{
opacity:1
}
To have a faster transition, but I see it is not being applied. The reason is that my custom CSS loads first and then htmx adds this <style>
part below my CSS, which overwrites my own styles. Is there any way to make that work?miniature-lizard-24702
09/01/2022, 6:56 PMminiature-lizard-24702
09/01/2022, 6:56 PMminiature-lizard-24702
09/01/2022, 6:59 PMminiature-lizard-24702
09/01/2022, 6:59 PM.error-icon {
display: inline;
opacity: 1;
}
.htmx-request .error-icon {
display: none;
opacity: 0;
transition: opacity 1s ease-in;
}
.loading-icon {
display: none;
opacity: 0;
transition: opacity 1s ease-in;
}
.htmx-request .loading-icon {
display: inline;
opacity: 1;
}
green-flower-49070
09/01/2022, 7:51 PM