TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
tri_inn
NA
1.2k
233.5k
How angularjs fade in fade out div animation working with cs
Jun 16 2017 10:07 AM
see my code
var app = angular.module(
'myApp'
, [
'ngAnimate'
]);
app.controller(
'MainController'
, function($scope) {
$scope.animate =
false
;
$scope.play = function() {
$scope.animate = !$scope.animate;
}
});
when animate property getting true then div is appearing with fade in effect and when animate property getting false then div is disappearing with fade out effect.
i see the code but do not understand how css is getting applied with animate property because i am new in angular and trying to learn it.
see the css
.animate-show,
.animate-hide {
-webkit-transition:all linear 1s;
-moz-transition:all linear 1s;
-ms-transition:all linear 1s;
-o-transition:all linear 1s;
transition:all linear 1s;
}
.animate-show.ng-hide-remove,
.animate-hide.ng-hide-add.ng-hide-add-active {
opacity: 0;
display: block !important;
}
.animate-hide.ng-hide-add,
.animate-show.ng-hide-remove.ng-hide-remove-active {
opacity: 1;
display: block !important;
}
.animate-show,
.animate-hide
is working with boolean property. there is also other css classes out there associated
.animate-show and .animate-hide.
please help me to understand how css working with angular boolean property ?
thanks
Reply
Answers (
1
)
Problem with Angular2 Setup in VS2015
Change Tab index on ng-keydown