Skip to content

Commit

Permalink
Update transition.md - changed span to div (#4215)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bobclewell committed May 16, 2024
1 parent 4fa8eaf commit 60cf5a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/docs/src/en/directives/transition.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ The simplest way to achieve a transition using Alpine is by adding `x-transition
<div x-data="{ open: false }">
<button @click="open = ! open">Toggle</button>
<span x-show="open" x-transition>
<div x-show="open" x-transition>
Hello 👋
</span>
</div>
</div>
```

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

<span x-show="open" x-transition>
<div x-show="open" x-transition>
Hello 👋
</span>
</div>
</div>
</div>
<!-- END_VERBATIM -->
Expand Down

0 comments on commit 60cf5a8

Please sign in to comment.