Skip to content
Advertisement

My Device is Slow on Running CSS Transition Code [closed]

I am trying to code HTML but for some reasons, my device is unable to run CSS codes smoothly. You can check the code which is written in CodePen.

JavaScript
JavaScript

I have tested it on other devices, and in all of them it was smooth but the transition in my device is laggy. It feels like there is not enough fps.

I have tried to turn extensions off or try it on other browsers(including opera, edge and firefox), but the result did not change. Also, I have reactivated “Use hardware acceleration when available but it has no benefit.

I would be grateful if you help me.

Advertisement

Answer

Why don’t you use transform: translateY() for better transitioning fps. translate offer you a smooth transition when you want to animate the element positioning.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement