-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Dropdown menu doesn't have closing fade out effect #1465
Comments
@kirlisakal After e8d5fef has landed in master, I suppose it will be easier for you to do it. |
@bekos thank you... |
@bekos @kirlisakal Can you guy advice me on how I can use that to do animation when user click on dropdown? I'm expecting something like .ng-hide-add but obviously angular bootstrap is not setting such on my elements. |
Nevermind, my bad. Figured it out by looking at the DropdownController code :) |
@phuongnd08 Total rookie here. Could you talk me through how you managed to add an animation on the dropdown? I've tried a CSS "opacity:0" on the .dropdown-menu but to no avail. :( |
@kirlisakal - wondering if you could share how you've managed to get the fadeOut to work the Angular way? I've managed to create a fadeIn effect via CSS but fadeOut still seems to be a sticking point for me. |
@deezil It has been a while and I couldn't recall it. You may try looking at DropdownController code. It should have some pattern you can learn from there. |
@deezil please ask for support question on Stack Overflow and not here in the issue tracker. |
@deezil excuse me I am late...
// element.parent().removeClass('open'); As I remember, by this code, it works for me. Dont feel stricted about changing and manipulating library codes. It will give you experiment more... |
As an AngularJS user, I am having difficulties about bootstrap directive effects.
Here for dropdown menus, I can simply add effect to open action by adding class to ul.dropdown-menu
However, I cannot add effect to close action, so I have to change some code on ui.bootstrap.dropdownToggle directive:
Maybe css animation structure of AngularJS will be added to bootstrap library completely. It will be much easier for users. For example, ngHide effect usage:
The text was updated successfully, but these errors were encountered: