How can I animate a div-Box in AngularJS? I've tried several examples for my intention, but the animation doesn't work.
I want to create a method, if the user clicked on the button, then the search form displays in the view with a transition animation.
I know I have to create for my App module an .animation(). Can I create this in a Ctrl file or do I have to create it in a separate file?
<div ng-class="searchFormAnimation" ng-hide="searchFormHide">
...//search form
</div>
//In a separate panel is the button
<button type="button" class="btn" ng-click="btnSearch()">
Search
</button>
Currently I'm using a scope variable in ng-hide which has a bool value. When I'm clicking on the button, then the variable gets the false value and the search form is showing. But I want to change this with Angulars animation and jQuery.