Skip to content

Commit a1fce15

Browse files
committed
Fixed animation visibility issue
1 parent 34fc1c4 commit a1fce15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/transition/transition.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export class SuiTransition {
6969
}
7070

7171
public animate(animation:ISuiAnimation) {
72+
animation = Object.assign({}, animation);
7273
animation.classes = animation.name.split(" ");
7374
if (!animation.duration) {
7475
animation.duration = 250;
@@ -101,6 +102,7 @@ export class SuiTransition {
101102
}
102103

103104
this.isAnimating = true;
105+
this.isVisible = true;
104106
this.isHidden = false;
105107

106108
animation.classes.forEach(c => this.renderer.setElementClass(this.el.nativeElement, c, true));

0 commit comments

Comments
 (0)