GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

06Brick Cracks That Spread With Hit Points

Each brick keeps its remaining hit points as an integer that drops by one per hit, and that value turns into a color step and a crack line count; it vanishes only on the last hit, so a brick hit twice at the same spot is visible at a glance.

Best forA state display for tough bricks that take several hits

HP_MAXCRACK_NTINT_STEP
Brick Cracks That Spread With Hit Points
Open in a new tab

06 Brick Cracks That Spread With Hit Points — Measured area 7.872% · moving frames 21/23Original by GODRICH · SCSS and React ship in the zip · Brick Breaker Game: 9 Canvas Scenes

The post this demo lives in

Brick Breaker Game: 9 Canvas Scenes - preview of all 9 demosBrick Breaker Game: 9 Canvas ScenesHow does brick breaker turn a hit into a path? 01 sets the angle from paddle offset, 02 splits one frame so no fast ball See all demos in this post

If you like this effect - similar demos