Search Posts

Category: ng-animate

How to archive zoomIn and zoomOut animate for ngenter and ngLeave option using angularJs

I need to archive zoom in and zoom out animation when the user enters and leave the page view section, I can able to archive slide left, right, top and bottom animation effect but I am facing the issue in zoomin and zoomout animation when enter and leave the page view section. HTML: <div class=”links”> <a href=”#/first”>First</a> <a href=”#/second”>Second</a> <a href=”#/third”>Third</a> </div> CSS: /* Default view */ .view{ position: absolute; top: 100px; width: 100%; transition: […]

Fade in image on page load

How would I fade in an image on page load using Angular JS, currently this is my code on AngularJS, but it doesn’t work (based off of: View <object type=”image/svg+xml” data=”img/logo-blue.svg” class=”navbar-logo” ng-class=”{‘fade-in’: vm.fade }”></object> Controller vm.fade = true; CSS .animation { opacity:0; transition:all 200ms ease-in-out; } .animation.fade-in { opacity:1; } Source: AngularJS