loading code fetching the highlighted snippet
A custom effect claims a plain dial object and writes its animated values before a canvas render loop draws each frame.
createEffect teaches Motion how to read and write the dial.animate() call applies spring physics to a plain object.frame.preRender writes values before the canvas draws.