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

106
Visualizações
Animation CSS/JS Jerky on Android and sometime PC

I create a Periodic Table Apps and I create an animation where Element move from initial position to center of window, but transitions are Jerky. To do this I Create a Copy of this Element (clicked) and change is Class.

enter image description here

Animation are made from CSS (updating class which has other Left/Top/Translate values) and few are coming from JS (for example : x.style.left = y)

I also tried to create CSS ROOT values and update them with JS, but same problem. I Also tried to remove maximum JS which is not necessary. Tried Request Animation Frame "everywhere" too.

I am not using Plugins, it's a VanillaJS App made With Isotope. Do you know why is this laggy ? Are there too many elements in my DOM ? Or Maybe i Am doing wrong ? Love this kind of transition, so I really Want to know how i can optimise it !

Here is a Link for my Project JavaScript (Might be updated frequently).

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I recently had a similar problems with jerky/laggy animation with a slider.

The conclusion was that animation should be done with transform properties, not with top/bottom/left/right and neither with margin or padding.
Here are two posts I found that explain the problem:
Laggy CSS animation
Why transitions for some CSS properties are slow and none fluent

about 4 years ago · Juan Pablo Isaza 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