Skip to content

Commit 3941c00

Browse files
Docs: popups use reverse transition when closing and data-direction "reverse" is not supported.
1 parent a51dcf5 commit 3941c00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api/data-attributes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ <h2><a href="../pages/page-links.html">Link</a></h2>
327327
</tr>
328328
<tr>
329329
<th>data-direction</th>
330-
<td>reverse - Reverse page transition animation</td>
330+
<td>reverse - Reverse transition animation (only for page or dialog)</td>
331331
</tr>
332332
<tr>
333333
<th>data-dom-cache</th>

docs/pages/popup/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ <h2>Positioning options</h2>
289289
<p>The above will cause the popup to open and close with a slide transition, and to position itself centered in the window.</p>
290290

291291
<h2>Setting transitions</h2>
292-
<p>By default, popups have no transition to make them open as quickly as possible. To set the transition used for a popup, add the <code>data-transition</code> attribute to the link that references the popup. </p>
292+
<p>By default, popups have no transition to make them open as quickly as possible. To set the transition used for a popup, add the <code>data-transition</code> attribute to the link that references the popup. The reverse version of the transition will be used when closing the popup.</p>
293293

294294
<pre><code>
295295
&lt;a href=&quot;#transitionExample&quot; <strong>data-transition=&quot;flip&quot;</strong> data-rel=&quot;popup&quot;&gt;

0 commit comments

Comments
 (0)