Dropdown works fine when clicking, but got trouble when trying to make it work when hovering. this was the original Css only code for adding a fade efect from this post https://stackoverflow.com/a/47986695/9124081
.dropdown-menu.fade {
display: block;
opacity: 0;
pointer-events: none;
}
.show > .dropdown-menu.fade {
pointer-events: auto;
opacity: 1;
}
And this is what I tried for hover, failing miserably
.dropdown:hover>.dropdown-menu.fade {
display: block;
opacity: 0;
pointer-events: none;
}
.show > .dropdown:hover>.dropdown-menu.fade {
pointer-events: auto;
opacity: 1;
}
codepen example: https://codepen.io/anon/pen/LrZxPr