<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-create-animated-bubbles-with-html5-canvas-and-javascript-lwjvlzd18" -->

---
title: How to Create Animated Bubbles with HTML5 Canvas and...
description: How to create Animated Bubbles with HTML5 Canvas and JavaScript. We'll achieve all of this using just a touch of HTML and all JavaScript, no CSS. What we will...
canonical: https://daily.dev/posts/how-to-create-animated-bubbles-with-html5-canvas-and-javascript-lwjvlzd18
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Create Animated Bubbles with HTML5 Canvas and JavaScript | daily.dev
og:description: How to create Animated Bubbles with HTML5 Canvas and JavaScript. We'll achieve all of this using just a touch of HTML and all JavaScript, no CSS. What we will...
og:url: https://daily.dev/posts/how-to-create-animated-bubbles-with-html5-canvas-and-javascript-lwjvlzd18
og:image: https://api.daily.dev/og/posts/LwJVlZD18.png
og:image:alt: How to Create Animated Bubbles with HTML5 Canvas and JavaScript
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Create Animated Bubbles with HTML5 Canvas and JavaScript

**[freeCodeCamp](https://daily.dev/sources/freecodecamp)** · 6 min read · 11 upvotes · 1 comments

## Summary

How to create Animated Bubbles with HTML5 Canvas and JavaScript. We'll achieve all of this using just a touch of HTML and all JavaScript, no CSS. What we will learn is how to create circles using the method of the canvas context. How to add stroke styles and fill styles to your circles for a 3D bubble effect.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.freecodecamp.org/news/how-to-create-animated-bubbles-with-html5-canvas-and-javascript/>

## Community discussion

Top comments from developers on daily.dev.

**@jaydevvadachhak** · 0 upvotes

> Hi it's a great 😃 but I'm not getting how would it be useful?

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#html](https://daily.dev/tags/html)

[View this post on daily.dev](https://daily.dev/posts/how-to-create-animated-bubbles-with-html5-canvas-and-javascript-lwjvlzd18)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Create Animated Bubbles with HTML5 Canvas and JavaScript","url":"https://daily.dev/posts/how-to-create-animated-bubbles-with-html5-canvas-and-javascript-lwjvlzd18","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-create-animated-bubbles-with-html5-canvas-and-javascript-lwjvlzd18"},"datePublished":"2023-09-05T15:58:22.141Z","dateModified":"2023-09-05T15:57:38.298Z","description":"How to create Animated Bubbles with HTML5 Canvas and JavaScript. We'll achieve all of this using just a touch of HTML and all JavaScript, no CSS. What we will...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c1458e3551a0fb7da45b64e1483db580?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c1458e3551a0fb7da45b64e1483db580?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"freeCodeCamp","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"freeCodeCamp","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1628412854/logos/freecodecamp","url":"https://daily.dev/sources/freecodecamp"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/how-to-create-animated-bubbles-with-html5-canvas-and-javascript-lwjvlzd18","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"javascript,html","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"freeCodeCamp","item":"https://daily.dev/sources/freecodecamp"},{"@type":"ListItem","position":3,"name":"How to Create Animated Bubbles with HTML5 Canvas and JavaScript"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-to-create-animated-bubbles-with-html5-canvas-and-javascript-lwjvlzd18","comment":[{"@type":"Comment","text":"Hi it’s a great 😃 but I’m not getting how would it be useful?","datePublished":"2023-09-09T03:36:43.302Z","url":"https://daily.dev/posts/LwJVlZD18#c-EEDL606DM","author":{"@type":"Person","name":"Jaydev Vadachhak","url":"https://daily.dev/jaydevvadachhak","image":"https://media.daily.dev/image/upload/s--mGBJrIob--/f_auto/v1773653403/avatars/avatar_mR4x84vUiYFoiB6pn7hhg?_a=BAMAMiiu0"}}]}
```

