Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. How do I make an Element slide-in, after user selects choice from drop-down, then it slides out.

How do I make an Element slide-in, after user selects choice from drop-down, then it slides out.

Scheduled Pinned Locked Moved JavaScript
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Garry 2023
    wrote on last edited by
    #1

    I need an element on my page to slide-in automatically 3 seconds after page is opened, and then slide-out after user chooses their preferred choice from the dropdown menu (which is the Element). I want the slide-in/slide-out effect to be from the right-hand side of the page.

    The dropdown menu particularly is the 'Google Translate Element', which I have styled to my desired appearance, and I want this to slide in 4 seconds upon page lunch and after user chooses desired language, it slides out.

    Below 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;
    }

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups