var radio = 25; // Radio de la trayectoria circular var velocidad = 0.5; // Velocidad de la animación (en grados por segundo) var duracionBucle = 8; // Duración del bucle en segundos var vueltasCompletas = duracionBucle * (360 / velocidad); var angulo = degreesToRadians((360 * time * velocidad) % (360 * vueltasCompletas)); var posicionX = Math.cos(angulo) * radio; var posicionY = Math.sin(angulo) * radio; [posicionX+250, posicionY+536.3]
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter