Is there a way to make an element on my page slide in automatically after 3 seconds when the page is opened, and then slide out once the user selects their desired choice from a dropdown menu (which is the Element)? I would like the sliding effect to come from the right-hand side of the page.
The specific dropdown menu in question is the 'Google Translate Element', which has been customized to fit my design preferences. I'd like this element to slide in 4 seconds after the page loads and then slide out after the user has chosen their preferred language.
Here is the code for the styled Element:
/*google translate Dropdown */
#google_translate_element select{
background: rgba(246,237,253,0.92) !important;
border: none !important;
color: rgba(54,58,173) !important;
width: 115px !important;
border-radius: 5px !important;
padding: 5px 5px !important;
font-size: 11.8px !important;
position: absolute !important;
margin-top: 84px !important;
margin-left: 232px !important;
}
.vl {
position: absolute !important;
border-left: 3.7px solid green !important;
border-radius: 2px !important;
height: 30px !important;
margin-top: 67px !important;
margin-left:351px !important;
}
/*google translate link | logo */
.goog-logo-link,.goog-te-gadget span,div#goog-gt-{
display:none!important;
}
.goog-te-gadget{
color:transparent!important;
font-size:0;
}
/* google translate banner-frame */
.goog-te-banner-frame{
display:none !important;
}
#goog-gt-tt, .goog-te-balloon-frame{
display: none !important;
}
.goog-text-highlight {
background: none !important;
box-shadow: none !important;
}
<div id="google_translate_element"></div>
<div class="vl"></div>