Share JSXGraph: example "Animation: moveTo() and visit()"

JSXGraph
Share JSXGraph: example "Animation: moveTo() and visit()"
This website is a beta version. The official release will be in **2023**.

Animation: moveTo() and visit()

Use the point methods `moveTo` and `visit` for animations.
Click here, to start animation with "visit"
Click here, to start animation with "moveTo"
<span onClick="p.visit([-1.8,-0.5], 2000, 2)" style="color:blue">Click here, to start animation with "visit"</span>
<br>
<span onClick="p.moveTo([-1.5,1.5],1000)" style="color:red">Click here, to start animation with "moveTo"</span>
// Define the id of your board in BOARDID

const board = JXG.JSXGraph.initBoard(BOARDID, {
    boundingbox: [-2, 2, 2, -2],
    keepaspectratio: true,
    axis: true
});

var p = board.create('point', [1.5, 1.5], {
    size: 8,
    strokeColor: 'red',
    fillOpacity: 0.6,
    strokeOpacity: 0.6
});

board.create('segment', [
    [0, 0], p
], {
    dash: 3
});