Fixed example code

This commit is contained in:
Ben Croker 2020-12-15 17:30:56 +01:00 committed by GitHub
parent c0f1e06eab
commit a64fa3cf07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ phase.
transition: opacity 1s ease-out;
}
</style>
<button class="fade-me-in"
<button id="fade-me-in"
hx-post="/fade_in_demo"
hx-swap="outerHTML settle:1s">
Fade Me In
@ -176,4 +176,4 @@ being updated smoothly.
#### Conclusion
You can use the tools above to create quite a few interesting and pleasing effects with plain old HTML while using htmx.
You can use the tools above to create quite a few interesting and pleasing effects with plain old HTML while using htmx.