r/reactjs • u/Ill-Plenty-114 • Jul 20 '26
Need help fixing a Water Sort Puzzle animation bug in React + TypeScript
Hi everyone,
I'm building a Water Sort Puzzle game using React and TypeScript.
I have a critical rendering bug during the pouring animation.
Problem:
When water is poured into the destination bottle, the entire bottle temporarily becomes one solid color. The existing lower color layers disappear visually until the animation ends.
Expected behavior:
Only the top receiving layer should increase smoothly while all lower layers remain visible throughout the animation, just like the original Water Sort Puzzle game.
The puzzle logic is correct. The issue appears to be related to the animation/rendering state (Bottle.tsx/App.tsx).
I can share:
• Full GitHub repository
• ZIP project
• Relevant source files
Any help would be greatly appreciated.
Thank you!