I've been trying to figure out how to animate in AngularJS by searching online, but I haven't found a perfect solution yet.
html <span class="sb-arrow down" ng-click="hideSampleList($event)"></span> js: $scope.hideSampleList = function ($event) { if ($($event.currentTarget).hasClass("down")) { $($event.currentTarget).next().hide(300); } else { $($event.currentTarget).removeClass("up"); $($event.currentTarget).addClass("down"); } } Currently, I'm using jQuery for animation. I would like to know how I can achieve animations (show and hide) in AngularJS instead. Can anyone please provide some guidance?