Creating Irregular Circle in CSS


Hey there, this is Thomas from Macao.

In this video, I would like to talk about creating irregular circles by using CSS border-radius.

There are 4 corners for the border-radius, they are top left, top right, bottom right and bottom left.

We can define a unified value to all 4 corners. For instance, when we have a square element and apply all the values to be 50% or larger, we have a circle.

The fun part is that when we apply different values to four corners, we can create irregular circles.

And by using transition, transform, pseudo-elements, we can create fun irregular circular elements.

.circle {  
   border-radius: 50% 90% 50% 80%;
   background: gold;
   width: 200px;
   height: 200px;
I teach web design. I write books on HTML5 games development. I host classes on mobile web and app development. I made animation with Adobe Flash (now Animate).

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.