$frame

Executes specific code for each rendered frame, e.g. run effects, update controls, etc.

<div
    x-3.mesh
    x-effect="$frame(() => $i.rotation.y += 0.01)"
>
<!-- ... -->
</div>

Last updated