Skip to content

Commit 3158169

Browse files
committed
Docs: update transition ex
1 parent 6f53c0d commit 3158169

File tree

2 files changed

+4
-2
lines changed
  • docs/src/examples/query/plugins/query-transition-behavior
  • src/behaviors/transition

2 files changed

+4
-2
lines changed

docs/src/examples/query/plugins/query-transition-behavior/page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { $ } from '@semantic-ui/query';
33

44
$('ui-button').on('click', () => {
55
const animation = $('.animation').val();
6-
const direction = $('.direction').val();
6+
const groupOrder = $('.direction').val();
77
const duration = $('.duration').val() || 'auto';
88
const interval = $('.interval').val();
99

1010
$('.box').transition({
1111
animation,
12-
direction,
12+
groupOrder,
1313
duration,
1414
interval,
1515
});

src/behaviors/transition/transition.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ const createBehavior = (
257257
return;
258258
}
259259

260+
// pass through animation id for easier debugging / inspection of animations
261+
// i.e. "fade in" , "fade out", "bounce"
260262
const animationID = (direction)
261263
? `${cssAnimations.name} ${direction}`
262264
: `${cssAnimation}`;

0 commit comments

Comments
 (0)