Dan00x Posted November 26, 2021 Share Posted November 26, 2021 Hi, I did flip the numbers from 0 to real numbers. With 1 or 2 data lines it works great But with many data lines it becomes laggy See the Pen VwzJpya by letranhuudanh0030 (@letranhuudanh0030) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted November 26, 2021 Share Posted November 26, 2021 Hi Dan, You're just asking the browser to do too much work. If I remove all the GSAP animations, it still runs slow. My guess is that a lot of that has to do with you using innerHTML, which creates a bunch of new elements and causes layout thrashing. You also have 60 components, which is going to add a lot of overhead. It would be more performant if you could do everything inside a single component. Also, I noticed you are using the old GSAP syntax. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now