Skip to content

Commit

Permalink
feat(igcCollapsible): Update animations #307
Browse files Browse the repository at this point in the history
  • Loading branch information
IvayloG committed Aug 24, 2018
1 parent f86a73c commit 7db0480
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class IgxCollapsibleComponent {
private body: QueryList<ElementRef>;

private playOpenAnimation(cb: () => void) {
this.animationSettings.openAnimation.options.params.fromPosition = 'translateY(-50px)';
this.animationSettings.openAnimation.options.params.fromPosition = 'translateY(0px)';
const animationBuilder = this.builder.build(this.animationSettings.openAnimation);
const openAnimationPlayer = animationBuilder.create(this.body.first.nativeElement);

Expand All @@ -150,7 +150,7 @@ export class IgxCollapsibleComponent {
}

private playCloseAnimation(cb: () => void) {
this.animationSettings.closeAnimation.options.params.toPosition = 'translateY(-50px)';
this.animationSettings.closeAnimation.options.params.toPosition = 'translateY(0px)';
const animationBuilder = this.builder.build(this.animationSettings.closeAnimation);
const closeAnimationPlayer = animationBuilder.create(this.body.first.nativeElement);

Expand Down

0 comments on commit 7db0480

Please sign in to comment.