I created a container designed to pop up from the bottom of the site when something isn’t saved (to enable batch saving). I have my content in the center using flexible mode using this css:
.save-footer {
z-index: 9998; position: fixed; bottom:0; height:3em;
background: rgb(255, 247, 125);
color: black;
width:100%;
display:flex;
align-items: center;
justify-content: center;
padding:0.5em;
}
. The problem is that when I use jQuery.slideDown (), it does not take into account the centering of flex mode and ends up moving to the left (see JFiddle here ). When he did this, he backed down again due to the callback function that I received from another SO response.
Is there a way to animate this slide without losing alignment? Is there a better way to implement this banner? (I'm not the first developer) ...
. slideToggle slideDown, .