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

183
Views
react js cant rotate char

I am trying to make it so when I click a circle with the ">" character, it gets rotated around so that it turns into "<" with a nice animated transition

I have my code here with the className='chevron-char'

                <div
                    id="main"
                    className={`
                    super-animation 
                        super-animation 
                        ${showSideNav ? 'main-show' : ' '}
                    `}
                >   
                    <button className="openbtn" onClick={sideNavClicked}>
                        <a className='chevron-char' > > </a>
                    </button>
                    {children}

                </div>

and my css:

.chevron-char:hover{
  color:pink;
  transform: rotate(80deg);
  transition: all 0.25s ease-in-out;
}

If I hover over, the char turns pink, but no rotation whatsoever

is it an issue with my css? with how react handles css transform? This would work fine in vanilla css/js/html

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!