From dc3023e674c84932b7784d271ca806b98f5fa7e4 Mon Sep 17 00:00:00 2001 From: carson Date: Fri, 1 Oct 2021 20:33:29 -0600 Subject: [PATCH] improve docs --- www/docs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/docs.md b/www/docs.md index 9017dcd0..f64f2bb7 100644 --- a/www/docs.md +++ b/www/docs.md @@ -367,8 +367,8 @@ Given this situation, we can write a CSS transition from the old state to the ne } ``` -When htmx does the swap, it will it is in such a way that this CSS transition will apply to the new content, and -you will get a nice, smooth transition to the new state. +When htmx swaps in this new content, it will do so in such a way that the CSS transition will apply to the new content, +giving you a nice, smooth transition to the new state. So, in summary, all you need to do to use CSS transitions for an element is keep its `id` stable across requests!