I recently started learning about the Ionic framework and I'm attempting to incorporate a fade animation on a 'card' element using CSS. However, despite setting a 1-second transition duration, the targeted element simply disappears after a button click without any animation effect.
Below is the code snippet:
HTML
<ion-list class="card step-card" ng-show="s1">
<ion-item>Add some salt</ion-item>
<ion-item class="item-button-right">
<button class="button" ng-click="showNextStep()">Next</button>
</ion-item>
</ion-list>
CSS
.step-card
{
transition: all linear 1s;
opacity: 1;
}
.step-card.ng-hide-add
{
opacity: 0;
}
.step-card.ng-hide-remove
{
opacity: 1;
}
JS
angular.module('starter', ['ionic', 'ngAnimate'])
> ionic info output
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
Install ios-sim to deploy iOS applications.`npm install -g ios-sim` (may require sudo)
Install ios-deploy to deploy iOS applications to devices. `npm install -g ios-deploy` (may require sudo)
******************************************************
Your system information:
Cordova CLI: Not installed
Ionic CLI Version: 2.1.8
Ionic App Lib Version: 2.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.1.0
Xcode version: Not installed
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
Install ios-sim to deploy iOS applications.`npm install -g ios-sim` (may require sudo)
Install ios-deploy to deploy iOS applications to devices. `npm install -g ios-deploy` (may require sudo)
******************************************************
Any assistance with resolving this issue would be greatly appreciated. Thank you in advance!