Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
How do I make my menu bar visible while also playing the animation when a user logs in?

I want to make my menu bar play an animation that slides into the menu, but I don't know how. I'm using Javascript to create the element, CSS to animate and style it. I want to make a javascript code that plays the CSS animation and make it appear when the user clicks the login button/logs in. CSS:

#join_button{

  width: 60%;
  height: 40px;
  border-radius: 8px;

  font-family: Varela Round;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  cursor: no-drop;
  /* animation: blablalbla (play animation when clicked.) */
}

Javascript:

  var join_button = document.createElement('button')
  join_button.setAttribute('id', 'join_button')
  join_button.innerHTML = 'Join <i class="fas fa-sign-in-alt"></i>'

So, to actually clarify what I'm looking for, is a Javascript code that references #join_button, and play an animation.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!