Blobs
Ce contenu n’est pas encore disponible dans votre langue.
CSS Variable: --o-radius-blob-{ 1-5 }
Utility Class: o-blob-{ 1-5 }
How does it work?
link How does it work?For the example, let’s break down blob 1:
border-radius
means we are telling CSS that we want to change the corners of something.- The first set of numbers
30% 70% 70% 30%
are like measurements for each corner. They determine how much roundness or smoothness the corners should have. Each number corresponds to a specific corner in this order: top left, top right, bottom right, bottom left. So, the top left corner will be30%
round, the top right and bottom right corners will be70%
round, and the bottom left corner will be30%
round. - After the slash (
/
), we have another set of numbers:53% 30% 70% 47%
. These numbers determine the shape of the rounded corner ellipse. Just like with the corners, each number corresponds to a specific corner in the same order: top left, top right, bottom right, bottom left. These numbers control the width and height of the ellipse that creates the rounded corner shape.
So, when we apply this CSS code to a shape, it will make the corners look round and smooth, with different degrees of roundness for each corner. It’s like giving the shape a special style to make it look nice and friendly!
Blob 1
link Blob 1o-blob-1
Blob 2
link Blob 2o-blob-2
Blob 3
link Blob 3o-blob-3
Blob 4
link Blob 4o-blob-4
Blob 5
link Blob 5o-blob-5