This example is running in WebGL2 and should work in most browsers. You can check the WebGPU examples here.
move_sprite.rs:
//! Renders a 2D scene containing a single, moving sprite.
use *;
/// The sprite is animated by changing its translation depending on the time that has passed since
/// the last frame.