We have seen many web menus, and various cool and practical menus are everywhere. Yesterday I saw a very special CSS3 menu. Its shape is wavy, curved, and combined with the background, it looks quite good. Let's take a look at the next one.
I would like to say that the menu may not be very practical, but it is very creative, and it is also convenient for us to learn about CSS3.
Next, let's analyze the source code of this ripple menu.
The structure of HTML code is very simple:
Bytes☾
Then there is the CSS code. Here we absolutely position the menu items.
{:;:;:;:;}
Next we will focus on the CSS code for the wavy effect. Here we mainly use the transform animation attribute of CSS3 to rotate using rotate, and skewY to tilt the Y axis.
{:;:;:;}{:;:;:;}{:;}{:;}{:;}{:;}{:;}{:;} {:;:;:;:;}
Nth-child (n) indicates the nth child element of the parent element.
The source code of the wavy menu is attached. Source code>