We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06d1ad5 commit 09ff695Copy full SHA for 09ff695
lib/components/animated-outlet.js
@@ -11,6 +11,10 @@ export class AnimationHook {
11
return outlet.hasAttribute(name) || this.options[name]
12
}
13
14
+ runParallel (outlet) {
15
+ return this.hasOption(outlet, 'parallel')
16
+ }
17
+
18
beforeAdd (outlet, el) {
19
20
@@ -212,10 +216,11 @@ export class AnimatedOutlet extends HTMLElement {
212
216
return
213
217
214
218
const hook = getAnimationHook(this.getAttribute('animation'))
219
+ const runParallel = hook.runParallel(this)
215
220
221
hook.beforeAdd(this, el)
222
super.appendChild(el)
- if (this.removing) {
223
+ if (!runParallel && this.removing) {
224
// when removing a previous el, append animation is run after remove one
225
this.appending = el
226
} else {
0 commit comments