Skip to content

Commit

Permalink
Merge pull request #156 from severinbeauvais/master
Browse files Browse the repository at this point in the history
PRC-328: removed post-spinner animation so page loads appear faster
  • Loading branch information
severinbeauvais authored Apr 27, 2018
2 parents a656ada + 6906a15 commit 0fe881a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="container" id="anchor-point">
<div class="spinner-container" *ngIf="loading" [@visibility]>
<div class="spinner-container" *ngIf="loading">
<div class="spinner-new rotating"></div>
</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Component, OnInit, OnDestroy } from '@angular/core';
import { trigger, style, transition, animate } from '@angular/animations';
import { Router, ActivatedRoute, ParamMap } from '@angular/router';
import { Location } from '@angular/common';
import { PaginationInstance } from 'ngx-pagination';
Expand All @@ -16,17 +15,7 @@ import { CommentPeriodService } from 'app/services/commentperiod.service';
@Component({
selector: 'app-application-list',
templateUrl: './application-list.component.html',
styleUrls: ['./application-list.component.scss'],
animations: [
trigger('visibility', [
transition(':enter', [ // :enter is alias to 'void => *'
animate('0.2s 0s', style({ opacity: 1 }))
]),
transition(':leave', [ // :leave is alias to '* => void'
animate('0.2s 0.75s', style({ opacity: 0 }))
])
])
]
styleUrls: ['./application-list.component.scss']
})

export class ApplicationListComponent implements OnInit, OnDestroy {
Expand Down

0 comments on commit 0fe881a

Please sign in to comment.