Hi there again,
Maybe a dumb question, by i could not find the answer just yet :)
I am trying to create a loading scene by using CSS and js loading i got :
var cl = new CanvasLoader('canvasloader-container');cl.setShape('spiral'); // default is 'oval'cl.setDiameter(132); // default is 40cl.setDensity(10); // default is 40cl.setRange(1.4); // default is 1.3cl.setSpeed(1); // default is 2cl.setFPS(33); // default is 24cl.show(); // Hidden by default// This bit is only for positioning - not necessaryvar loaderObj = document.getElementById("canvasLoader");loaderObj.style.position = "absolute";loaderObj.style["top"] = cl.getDiameter() * -0.5 + "px";loaderObj.style["left"] = cl.getDiameter() * -0.5 + "px";
Is there a way to create a loading function with this piece of code?