Skip to content

Instantly share code, notes, and snippets.

@jsanta
Last active March 9, 2018 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsanta/7501dac89f479926bb237c8717bf6bb7 to your computer and use it in GitHub Desktop.
Save jsanta/7501dac89f479926bb237c8717bf6bb7 to your computer and use it in GitHub Desktop.
applyFilterAnimation function that toggles the filterApplied boolean value from true to false past 1500 ms (1.5s)
filterApplied: boolean = false;
private applyFilterAnimation(): void {
this.filterApplied = true;
setTimeout(() => this.filterApplied = false, 1500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment