collapse transition not working with angular's UI Bootstrap

后端 未结 1 567
情深已故
情深已故 2021-02-13 01:59

I\'m trying to create a div which will show / hide when a button is clicked. The UI Bootstrap page shows a nice simple example that uses a css transition.

Here\'s my fi

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-13 02:53

    Just downgrade the ui-bootstrap version to 0.12.0. There is a bug in 0.13.0 that makes the animation not work.

    
    
        
        
        
        
    
    
    
        

    Some content

    The JS can stay the same. I just modified the ui-bootstrap version in the html code.

    Here is the updated fiddle as well - https://jsfiddle.net/xv7tws10/5/

    Edit: See Premchandra's response below. Apparently you have to include ng-animate in order to get collapse animation to work in angular 1.3.

    0 讨论(0)
提交回复
热议问题