When it comes to showcasing content with ng-animate and ng-view, I must admit it adds a touch of sexiness. However, I'm facing an issue where I want the second content to show only after the first content has been hidden, but I can't seem to figure out how to achieve this. Any help would be greatly appreciated!
<div ui-view='' ng-view='' class="fade"> ... </div>
Below is my CSS for the fade class:
.fade {
opacity: 1;
transition: all 1s ease;
}
.fade.ng-enter,
.fade.ng-leave {
}
.fade.ng-enter {
opacity: 0;
}
.fade.ng-enter-active {
opacity: 1;
}
.fade.ng-leave {
opacity: 1;
}
.fade.ng-leave-active {
opacity: 0;
}