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

212
Vistas
Is it possible to get current mouse cursor size in Javascript/jQuery?

I am using a custom cursor (SVG file) which is activated when hovering a button. I want this cursor to have the same size with default cursor on all platforms.

I wonder if it is possible to get default cursor size and set size of custom cursor accordingly.

A similar question was asked here almost 8 years ago. I was hoping it would be possible with new technologies.

about 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

There is no method or API of getting the size of the cursor on a user's OS. However, if you're adding a custom cursor, it is recommended you set its size to 32x32 as that is the size that is most compatible across most OS's.

about 4 years ago · Santiago Trujillo Denunciar

0

Unfortunately, there is no property to adjust cursor size with jquery. However since you are using a custom image you might find this useful:

http://www.ajaxblender.com/howto-create-custom-image-cursors.html.

This will show you how to create a custom cursor without a .cur file and add some css to adjust the size.

about 4 years ago · Santiago Trujillo Denunciar
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