May 10, 2024   -   David Oyinbo

Canvas Random Floating Circle

Lightweight Canvas animation where circles float randomly across the screen with gentle drift and easing.

JavaScriptHTML CanvasAnimationPet Project
canvas random floating circle image

Overview

This experiment uses Canvas 2D APIs to draw circles that drift around the viewport with simple easing and random direction changes. It focuses on animation loops, randomness, and smooth motion.

Highlights

Canvas Rendering

  • 2D context drawing (arcs, fills)
  • Clear + redraw per frame
  • Responsive canvas sizing

Randomized Motion

  • Random velocities and drift
  • Occasional direction changes
  • Gentle easing for a calm effect

Animation Loop

  • requestAnimationFrame
  • Time-based updates
  • Lightweight state

Code Footprint

  • Minimal JS
  • No dependencies
  • Easy to tweak

Other Projects

October 1, 2021

Payaza Web SDK

A JavaScript Web SDK that simplifies integrating Payaza checkout on web applications. Built as part of my role at Payaza Africa.

SDKJavaScriptPayments
May 13, 2024

Canvas Infinity & Circle Mouse

Pet project exploring HTML Canvas and JavaScript animations—drawing an infinity curve and a circle following the mouse.

JavaScriptHTML CanvasAnimation
June 1, 2022

iPay (Nuxt 3 Pet Project)

A simple Nuxt 3 site built to explore the Nuxt 3 ecosystem, routing, layouts, and component patterns.

Nuxt 3VuePet Project

Let's build something together

Available for senior engineering roles, consulting, and architecture reviews.

© 2025 David Oyinbo