'changing css style for when Bootstrap is 'closed'

I am using bootstrap framework where the collapsed menu (hamburger) pushes the site content down when selected.

 <div class="collapse navbar-collapse" id="bs-navbar-collapse" role="navigation-2"> ...

    <button
        class="navbar-toggler collapsed ml-auto" 
        type="button" 
        data-bs-toggle="collapse" 
        ...

It is at the top of the site, however I am not sure how to target the content to change how it is displayed. Everything I try changes it once it is 'open' but not as it is opening (as the area expands) I want it to be custom styled through the whole process



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source