Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

184
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda