Leonardo Sotelo

Generation

generate functionWed, 14 Jun 2023

funtion that generate a red div that rotate constantly and has position absolute using this syntax function cubologo(top, left, parent) { } so I can set the top and left position and its parent where it will be append

function cubologo(top, left, parent) { var div = document.createElement('div'); div.className = 'logo'; div.style.top = top + 'px'; div.style.left = left + 'px'; parent.appendChild(div); } cubologo(0, 0, document.body)

Javascript
Generate More

Want to kickstart your project?Use the new AI Studio to create your code