SVG: Create-animate
learn SVG Layer - Element creation and animation of its attributes.
<div id="mySvg"> </div>Layer Creation:
let renderer = i2d.svgLayer('#mySvg', {}, {});Element Creation:
let circle = renderer.createEl({
el: 'circle',
attr: {
r: 50,
cx: renderer.width / 2,
cy: renderer.height / 2
},
style: {
fill: '#ff0000'
}
})Animation:
Last updated