Questions tagged [angular2-animation]
81 questions
0
votes
1 answer
How to implement directive with animation in Angular 2?
I am currently working on an Angular 2 project.
The project is generated with angular-cli v1.0.0-beta.15.
I am now thinking to implement a reusable directive which trigger specific animation. As it is lack of documentation for this currently,…

ljieyao
- 209
- 1
- 3
- 13
0
votes
1 answer
Angular2 RC4 Animation Trigger Binding Error
I am getting an error when I bind an animation trigger name in the template.
[@triggerName] doesn't seem to work. What am I missing?
Component
import {Component, ViewChild, ViewChildren, Input, ElementRef, Renderer} from '@angular/core';
import…

Adrian Bartholomew
- 2,506
- 6
- 29
- 37
0
votes
2 answers
Run Method on FormControl's valueChanges Event
I have the following code for an Angular 2 type-ahead component:
this.question["input"] = new FormControl();
this.question["input"].valueChanges
.debounceTime(400)
.switchMap(term => this.question['callback'](term))
…

P. Moloney
- 721
- 8
- 22
0
votes
1 answer
How to animate one element on top of another element in Angular 2?
In Angular 2, how do I animate one element so that it's size and position will match that of another target element? The target element's size and position is not fixed, but can vary at runtime. Attached is a complete example using jQuery. As a…

battmanz
- 2,266
- 4
- 23
- 32
-1
votes
1 answer
Animations at a common place in angular 2
Can we have animations at a common place in angular 2. I am new to angular 2, was trying to implement one animation. Found out that the same animation will be needed on different pages. Is there a way I can write animation at a common place and…

Sushrocker
- 3
- 5
-4
votes
1 answer
angular 2 set style when window scrolls to element
In angular 2 can I do something like
which would trigger when the windows is near an element within a large component.
I am trying to avoid having to write a bunch of components with custom entrance animation.…

Philip Brack
- 1,340
- 14
- 26