Reputation: 5099
I am trying to apply the animation bounceInUp
using the animate.css
. on the div on show, But nothing works for me?
what the correct way to use this?
here is my css code :
.showing.ng-enter{
animation:bounceInUp 1s;
}
my HTML :
<p>Hello {{name}}!</p> <button ng-click="showIt()">Show</button>
<button ng-click="hideIt()">Hide</button>
<div ng-if="show" class="showing" >I am showing something here</div>
Upvotes: 0
Views: 52
Reputation: 1601
You need to include animated
class with showing
HTML
<div ng-if="show" class="animated showing" >I am showing something here</div>
CSS
.showing {
animation: bounceInUp 1s;
}
Upvotes: 1