---
title: "Alex Xiao (@xiao-web) | Hashnode"
description: "Alex Xiao (@xiao-web) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@xiao-web"
---

@xiao-web

# Alex Xiao

@xiao-web · Joined October 2026

## Comments

[Thanks! Performance-wise I didn’t benchmark them against each other, since scaleX and translateX are both compositor-only transforms, so neither triggers layout. The cap shape was the deciding factor: with scaleX + transform-origin: left, the border-radius gets scaled along with the bar, so when the bar is short the rounded ends get squashed. Translating a full-width bar inside an overflow-hidden container keeps the corners intact for free. If I ever needed scaleX, I think the usual workaround is to scale a plain inner element and draw the rounded caps separately, but the clipped version was simpler here.](https://hashnode.com/posts/the-progress-bar-that-made-typing-lag-debugging-a-331-ms-inp-in-a-react-game/6af731967d1a9aac85fbdebc/comment/6af8299f73e8e52437111a05#reply-6af830f746d71bc4055f2307)

Reply · Article · Nov 14 · [The progress bar that made typing lag: debugging a 331 ms INP in a React game](https://hashnode.com/posts/the-progress-bar-that-made-typing-lag-debugging-a-331-ms-inp-in-a-react-game/6af731967d1a9aac85fbdebc)
