Comparative Analysis of the Performance of CSS Animation Methods (Transition and Animation) under High DOM Load
Main Article Content
Abstract
This article presents a comparative performance analysis of two primary Cascading Style Sheets (CSS) animation methods — transition and animation — under conditions involving large-scale DOM rendering. Despite widespread beliefs among developers that transitions generally offer better performance, there is a lack of quantitative research validating this assumption in practical scenarios. To address this gap, we developed a web application capable of rendering and animating from 50 up to 10,000 elements simultaneously. Performance metrics were collected in real-time using built-in browser APIs, including average and minimum FPS, frame delta (time between frames), JavaScript heap memory usage, and total animation duration. Tests were conducted on the latest versions of Chrome and Firefox browsers. Results demonstrate that the choice of animation method heavily influences performance, the specific CSS property being animated (e.g., opacity, transform, blur, background-color), and the number of animated elements. While transitions showed slightly better efficiency in terms of JavaScript resource consumption, other metrics such as frame rate and rendering stability were comparable between the two methods. Notably, animations consistently require more memory, which may affect scalability in high-load interfaces. This research provides valuable quantitative data to guide front-end developers in selecting appropriate animation techniques for complex interfaces. It also emphasizes the importance of selecting GPU-friendly CSS properties to enhance rendering performance. Overall, the findings suggest that while the difference in performance between transitions and animations is modest, understanding their behavior under load is crucial for building smooth and responsive web experiences.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
All articles published in JIWE are licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) License. Readers are allowed to
- Share — copy and redistribute the material in any medium or format under the following conditions:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use;
- NonCommercial — You may not use the material for commercial purposes;
- NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.
References
StatCounter, “StatCounter Global Stats - Browser, OS, Search Engine Including Mobile Usage Share,” StatCounter, [Online]. Available: https://gs.statcounter.com. [Accessed: 3-Jul-2025].
H.K. Lam, and W.B. Lee, “User behavior modeling and analysis for online information retrieval,” IEEE Trans. Knowl. Data Eng., vol. 24, no. 4, pp. 732–744, Apr. 2012.
T. Osmani, “The psychology of web performance – time is money,” in Time Is Money: The Business Value of Web Performance. Sebastopol, CA, USA: O’Reilly Media, 2015. [Online]. Available: https://www.oreilly.com/library/view/time-is-money/9781491928783/ch01.html. [Accessed: 8-Jul-2025].
Google Developers, “RenderingNG architecture,” Chrome for Developers, [Online]. Available: https://developer.chrome.com/docs/chromium/renderingng-architecture?hl=ru. [Accessed: 8-Jul-2025].
V. Thakar, R. Thakar, and P. Vyas, “Investigation on understanding the numeracy capacity of intellectually disabled students using enabling technology tools: Web application, AR and UI/UX,” Journal of Informatics and Web Engineering, vol. 3, no. 3, pp. 176–189, 2024, doi: 10.33093/jiwe.2024.3.3.11.
Mozilla Contributors, “CSS animations,” MDN Web Docs, [Online]. Available: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animations. [Accessed: 3-Jul-2025].
The Chromium Authors, “Chromium Docs – How cc works,” Chromium source documentation, May 27, 2025. [Online]. Available: https://chromium.googlesource.com/chromium/src/+/lkgr/docs/how_cc_works.md#Compositor-frames_render-passes_quads. [Accessed: 8-Jul-2025].
Google Developers, “Rendering performance,” web.dev, [Online]. Available: https://web.dev/articles/rendering-performance?hl=ru. [Accessed: 8-Jul-2025].
Mozilla Contributors, “animationend - Web APIs | MDN,” Mozilla Developer Network, 2025. [Online]. Available: https://developer.mozilla.org/en-US/docs/Web/API/Element/animationend_event. [Accessed: 8-Jul-2025].
Mozilla Contributors, “transitionend - Web APIs | MDN,” Mozilla Developer Network, 2025. [Online]. Available: https://developer.mozilla.org/en-US/docs/Web/API/Element/transitionend_event. [Accessed: 8-Jul-2025].
World Wide Web Consortium (W3C), “Cascading Style Sheets (CSS) 3,” 2025. [Online]. Available: https://www.w3.org/Style/CSS/. [Accessed: 9-Jul-2025].
M. Beno, and M. Olvecky, “Measuring the performance of techniques for dynamic 2D animation in web browsers,” J. Appl. Math., Stat. Inf., vol. 20, no. 2, pp. 80–81, 2024.
J. Masner, P. Simek, J. Jarolimek, V. Ocenasek, and J. Pavlik, “Analysis of CSS organization styles and expensive properties in regard to rendering performance,” in Proc. Agrarian Perspectives XXIX: Trends and Challenges of Agrarian Sector, 29th Int. Sci. Conf., Prague, Czech Republic, Sep. 16–17, 2020, pp. 215–220.
Siteefy, “How many websites are there in the world? (2024),” Siteefy, [Online]. Available: https://siteefy.com/how-many-websites-are-there. [Accessed: 9-Jul-2025].
R. Bhutia, S.A.K. Dave, I.R. Mallela, R. Mall, A. Das, and A. Joshi, “Optimizing web interfaces with AI-generated CSS through machine learning and deep learning,” in Proc. 2024 13th Int. Conf. Syst. Modeling Adv. Res. Trends (SMART), Moradabad, India, Dec. 2024, doi: 10.1109/SMART63812.2024.10882500.
V.P.K. Vemuri, “Addressing critical challenges in front-end performance and scalability,” Int. J. Multidiscip. Res. Growth Eval., vol. 1, no. 5, pp. 156–161, Nov.–Dec. 2020, doi: 10.54660/IJMRGE.2020.1.5.156-161.
Y. Yang, “Web front-end application performance improvement method based on component-based architecture,” Int. J. Eng. Adv., vol. 2, no. 2, pp. 24–30, 2025, doi: 10.71222/sg9eef87.
A.S. Shethiya, “Scalability and performance optimization in web application development,” Integrated Journal of Science and Technology, 2(1).
M. Daniel, J. Honoroff, and C. Miller, “Engineering heap overflow exploits with JavaScript,” in Proc. 2nd USENIX Workshop Offensive Technol. (WOOT '08), 8(1-6), pp.11, 2008.
Mozilla Contributors, “window.requestAnimationFrame() - Web APIs | MDN,” Mozilla Developer Network, 2023. [Online]. Available: https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame. [Accessed: 10-Jul-2025].
MDN Web Docs, “Performance: now() method - Web APIs | MDN,” Mozilla, 2025. [Online]. Available: https://developer.mozilla.org/en-US/docs/Web/API/Performance/now. [Accessed: 12-Jul-2025].
Mozilla Contributors, “SPA - Glossary - MDN Web Docs,” Mozilla Developer Network, 2023. [Online]. Available: https://developer.mozilla.org/en-US/docs/Glossary/SPA. [Accessed: 13-Jul-2025].
Pinia, “Introduction,” Pinia - Vue Store, [Online]. Available: https://pinia.vuejs.org/introduction.html. [Accessed: 9-Jul-2025].
VueUse, “Guide,” VueUse Documentation, [Online]. Available: https://vueuse.org/guide. [Accessed: 12-Jul-2025].
A. A. Zaveri, R. Mashood, N. Faisal, M. Parveen, N. Sami, M. Nazar, and S. Imtiaz, “MobiTest – A software for mobile-based testing,” Journal of Informatics and Web Engineering, vol. 3, no. 3, Art. 1, 2024, doi: 10.33093/jiwe.2024.3.3.1.
R.L. Keeney, and H. Raiffa, “Decisions with Multiple Objectives: Preferences and Value Trade-Offs”, Cambridge, U.K.: Cambridge Univ. Press, 1993.