+ 3

See It{game}😢😢{solved}

Error It is not working properly https://code.sololearn.com/WF29x8qgViLR/?ref=app

26th Nov 2020, 11:50 AM
(=•_•=)YUVRAJ🔥
(=•_•=)YUVRAJ🔥 - avatar
6 Answers
+ 3
SetInterval is the problem why window's failed to getComputed style. The interval value 10 is relatively small that the function was called just before the character's box loaded. That explains also why it's lagging.
26th Nov 2020, 5:05 PM
Mirielle
Mirielle - avatar
+ 2
Nasif Rahman the problem is that the code is showing is a and it is lagging
26th Nov 2020, 12:24 PM
(=•_•=)YUVRAJ🔥
(=•_•=)YUVRAJ🔥 - avatar
+ 2
Don't use setInterval() with 10ms, use requestAnimationFrame instead
26th Nov 2020, 12:41 PM
Gordon
Gordon - avatar
+ 2
Gordon getcomputed style is problem
26th Nov 2020, 12:43 PM
(=•_•=)YUVRAJ🔥
(=•_•=)YUVRAJ🔥 - avatar
+ 1
The problem is that it is not running
26th Nov 2020, 12:28 PM
(=•_•=)YUVRAJ🔥
(=•_•=)YUVRAJ🔥 - avatar
+ 1
Lagging
26th Nov 2020, 12:28 PM
(=•_•=)YUVRAJ🔥
(=•_•=)YUVRAJ🔥 - avatar