Animate Dropdown Menu Bootstrap 4

bootstrap 4 dropdown-menu hover animation
bootstrap 4 dropdown animation codepen
bootstrap 4 dropdown hover animation
bootstrap 4 dropdown slide effect css
bootstrap navbar animation
bootstrap 4 animation
bootstrap 4 dropdown on hover
bootstrap dropdown

The native way a dropdown will shoe in bootstrap (4.0) is not animated. How can I make it "slide" open as the navbar does when collapsed?

It's worth noting that the dropdown is within the navbar. See below codeply;

<nav class="navbar navbar-dark bg-dark">
  <a class="navbar-brand" href="#">Never expand</a>
  <button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarsExample01" aria-controls="navbarsExample01" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>

  <div class="navbar-collapse collapse" id="navbarsExample01" style="">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item active">
        <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
      <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
      <li class="nav-item">
        <a class="nav-link disabled" href="#">Disabled</a>
      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
        <div class="dropdown-menu" aria-labelledby="dropdown01">
          <a class="dropdown-item" href="#">Action</a>
          <a class="dropdown-item" href="#">Another action</a>
          <a class="dropdown-item" href="#">Something else here</a>

Here's how I made a drop down animation with pure css using transform: scale:

SCSS style

.dropdown {
    .dropdown-menu {
        transition: all 0.5s;
        overflow: hidden;
        transform-origin: top center;
        transform: scale(1,0);
        display: block;
    &:hover {
        .dropdown-menu {
            transform: scale(1);

Check demo on Codepen

Animate Dropdown Menu Bootstrap 4, Here's how I made a drop down animation with pure css using transform: scale : SCSS style .dropdown { .dropdown-menu { transition: all 0.5s;  An easy to use dropdown menu animation for the Bootstrap 4 navbar component. Start your projects even faster using the new, pro products from Start Bootstrap!

The simplest way would be to use "collapse" to toggle it instead of "dropdown". Then you just need a little CSS to make sure it displays when the collapsing animation is active. Also note that position-relative is set on the dropdown-menu.

.dropdown-menu.collapsing {

Try it on Codeply

"Dropdowns are positioned thanks to Popper.js (except when they are contained in a navbar)."

Because dropdowns inside the Navbar are positioned differently here's another example using standard button dropdowns:

An alternative is to use one of the Bootstrap 3.x dropdown animation techniques.

Animated Bootstrap 4 Dropdown Menu - JSFiddle, <div class="container">. 3. <a class="navbar-brand" href="#">Animated Dropdown</a>. 4. <button class="navbar-toggler" type="button" data-toggle="​collapse"  To build bootstrap 4 dropdown you need to begin with step by step. Start with specific .dropdown class. To begin now add .dropdown-toggle class and data-toggle=”dropdown” to a link or button. Now the actual HTML structure with div class .dropdown-menu to the parent element and .dropdown-item to give a whole default layout.

You have to override css for dropdown. Use this css.

.dropdown-menu {
    display: block;

.navbar-nav .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s;

.navbar-nav {
    max-height: 500px;

Add Smooth Sliding Animation To Bootstrap 4 Dropdown Menu , A jQuery and CSS extension for Bootstrap 4 framework that adds a smooth sliding animation to Bootstrap 4 dropdown menus using CSS3  Chrome, IE9+, FireFox, Opera, Safari#Drop Down Menu#Bootstrap#bootstrap 4#responsive menu. The jQuery BootBavbar extends the native Bootstrap 4 navbar into a responsive multi-level dropdown menu with multi-device support and CSS3 animations.

Bootstrap Snippet Bootstrap V4 Drop down smooth animation using , Bootstrap example of Bootstrap V4 Drop down smooth animation using HTML, Javascript, jQuery, and CSS. Snippet by pradeep330. Bootstrap 4 menu kit Tutorials, code snippets, CSS library. We made ready to use responsive navigation menu examples on Bootstrap CSS framework. In this bootstrap navbar tutorials you will learn how to customize bootstrap 4 navbar with few css stylings.

Bootstrap 4 animate dropdown menu, How to make a Bootstrap 4 dropdown menu with a slide open (slide-up slide-​down) effect. Codeply example. To open the dropdown menu, use a button or a link with a class of.dropdown-toggle and the data-toggle="dropdown" attribute. Add the.dropdown-menu class to a <div> element to actually build the dropdown menu. Then add the.dropdown-item class to each element (links or buttons) inside the dropdown menu.

Codeply HTML CSS JavaScript Editor, add. Themes. add. Utilities. add. assignment. gradient. indeterminate_check_box​. add_box. 1. 2. 3. 4. 5. 6. 7. 8. 9 .dropdown-menu.collapsing {. display:block;. }. Create A Drop Down Navigation Menu with Bootstrap 4! Category People & Blogs; Show more Show less. Responsive Homepage design with Bootstrap 4 and Animate css - Duration: 13:06.