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

03A Snake Body That Glides by Pixels Between Ticks Instead of Jumping by Cells

Keep the logic on cell ticks and let only the drawn position chase each logic cell center by the BODY_LERP ratio every frame, removing the jerk of cell steps.

Best forMobile game screens where smooth motion matters

BODY_LERPTICK_MSTUBE_FRACTRAIL_LEN
A Snake Body That Glides by Pixels Between Ticks Instead of Jumping by Cells
Open in a new tab

03 A Snake Body That Glides by Pixels Between Ticks Instead of Jumping by Cells — Measured area 18.462% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · CSS Snake Game: 9 Boards That Find Their Own Path

The post this demo lives in

CSS Snake Game: 9 Boards That Find Their Own Path - preview of all 9 demosCSS Snake Game: 9 Boards That Find Their Own PathOpen a css snake game and the snake already turns toward the food before you touch a key — scene 01's shortest path and See all demos in this post

If you like this effect - similar demos