Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

213
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda