I need multiple divs to fade out at the same time.
The animation has been implemented to 10 different divs.
When animation is triggered, it works perfectly fine except it won't work for 1 div with identical code.
Here's animation code:
trigger('fadeInOut', [
state('hide', style({
opacity: 0,
display: 'none'
})),
state('display', style({
opacity: 1,
display: 'inline'
})),
transition('display => hide', animate('100ms ease-out')),
transition('hide => display', animate('100ms ease-out'))
])
And here is html part
<a href="#" class="list-group-item" data-parent="#sidebar">
<div class="icon-container">
<i class="fa fa-briefcase"></i>
</div>
<div class="fadable" [@fadeInOut]='fadeState'>
<span>Projects</span>
<span class="expand-icon">
<i class="fa fa-plus-square-o"></i>
</span>
</div>
</a>
and there are other 10 anchors with same code...
Can anyone help?