Comments (1)
Hi @SuneethaYamani ,
We have 2 callback methods for each animation in Angular: start
and done
which are being triggered at the beginning and at the end of animation respectively. It will look like that:
<div
[@bounce]="animationState"
(@bounce.start)="animStart()"
(@bounce.done)="animEnd()">
</div>
and in your component:
animate() {
this.animationState = !this.animationState;
}
animStart() {
console.log('Animation Started');
}
animEnd() {
console.log('Animation Ended');
}
So you could use done
callback to trigger another animation in your case.
Here's an example on Stackblitz I've created for you.
from angular-animations.
Related Issues (20)
- Usage with query, stagger and limit
- Add scale parameter to zoom animations
- iOS 15 - The provided animation property "backface-visibility" is not a supported CSS property for animations HOT 4
- Reload on button click HOT 1
- Encourage the library authors to publish an Ivy distribution. HOT 16
- Global animation options
- Animation callbacks get called even tho they didnt run HOT 1
- Feature Request: Provide more animation options
- Please update to last angular version to avoid old compilation es2015/esm2015 HOT 2
- Looks like the latest version in not in npm - v0.0.11 HOT 4
- -
- -
- Active development HOT 1
- Demo App: Bigger drop-down and search functionality HOT 1
- Animation
- Animation not take effect when Scrolling HOT 1
- Question about looping with animations that maintain state
- how do I group animations using the library
- How to animate something inside of an ngIf? HOT 2
- The provided animation trigger "enter" has not been registered! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-animations.