Share JSXGraph: example "Animation using CSS transitions"

JSXGraph
Share JSXGraph: example "Animation using CSS transitions"
This website is a beta version. The official release will be in **2024**.

Animation using CSS transitions

With the attributes `transitionDuration` and `transitionProperties` it is possible to use CSS transitions for animations. It is advisable to turn this attribute on only when the animation is started.
<button onClick="A.moveTo([3, 3], 0);">Move "A"</button>
// Define the id of your board in BOARDID

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

var A = board.create('point', [-1, 0], {
    name: 'A',
    transitionDuration: 2000,
    transitionProperties: ['cx', 'cy']
});