I am trying to use angularjs ui bootstrap accordion to built a nested accordion. Although the nested accordion works fine, the transitions from item to another one is too strict, i.e. transitions are not smooth as shown in the https://angular-ui.github.io/bootstrap/ website.
My code is here http://plnkr.co/edit/bTYLBXKHVXbDfElTcb0U?p=preview
angular.module('plunker', ['ui.bootstrap'])
.controller("AccordionDemoCtrl",["$scope", function ($scope) {
$scope.staticTitle = "Static Title";
$scope.groups = [
{ title: "Dynamic Title 1", content: "Dynamic content 1" },
{ title: "Dynamic Title 2", content: "Dynamic content 2" }
];
}]);
<!doctype html>
<html ng-app="plunker">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.0-beta.1/angular.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.14.3/ui-bootstrap-tpls.min.js"></script>
<script src="script.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div ng-controller="AccordionDemoCtrl">
<uib-accordion>
<uib-accordion-group heading="staticTitle">
<uib-accordion>
<uib-accordion-group heading="new heading">new content</uib-accordion-group>
<uib-accordion-group heading="new heading 2">new content 2</uib-accordion-group>
</uib-accordion>
</uib-accordion-group>
<uib-accordion-group heading="{{group.title}}" ng-repeat="group in groups">{{group.content}}</uib-accordion-group>
</uib-accordion>
</div>
</body>
</html>
I am looking for a smooth transition solution for the accordion.
Am I missing something or is this the way how accordion works?
Any help is welcomed