Skip to content

Commit 60cf5a8

Browse files
authored
Update transition.md - changed span to div (#4215)
With a span, the transition effect is not obvious because the element doesn't move so the documentation looks broken. I confirmed this in MacOS for Firefox, Chrome, and Safari.
1 parent 4fa8eaf commit 60cf5a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/docs/src/en/directives/transition.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ The simplest way to achieve a transition using Alpine is by adding `x-transition
2121
<div x-data="{ open: false }">
2222
<button @click="open = ! open">Toggle</button>
2323
24-
<span x-show="open" x-transition>
24+
<div x-show="open" x-transition>
2525
Hello 👋
26-
</span>
26+
</div>
2727
</div>
2828
```
2929

@@ -32,9 +32,9 @@ The simplest way to achieve a transition using Alpine is by adding `x-transition
3232
<div x-data="{ open: false }">
3333
<button @click="open = ! open">Toggle</button>
3434

35-
<span x-show="open" x-transition>
35+
<div x-show="open" x-transition>
3636
Hello 👋
37-
</span>
37+
</div>
3838
</div>
3939
</div>
4040
<!-- END_VERBATIM -->

0 commit comments

Comments
 (0)