A-Frame – dynamic JavaScript, code part (.js)

The below example shows using A-Frame together with JavaScript.

The example shows, how to animate a sphere on a plane.

This is the JavaScript part.