concept label in category css

This is an excerpt from Manning's book CSS in Depth.
Let’s add one finishing touch to your dropdown menu. It works as is, but it may not be immediately apparent to the user that there’s more content to discover along with the Main Menu label. Let’s add a small down arrow to the label to indicate there’s more to explore.
You can use a little trick with borders to draw a triangle that serves as the down-pointing arrow. You’ll use the dropdown label’s ::after pseudo-element to draw the triangle, then use absolute positioning to put it on the right side of the label.
2 Nav links each contain an image and a label.
The menu labels don’t necessarily need to be visible at all times. You can hide them by default, leaving the icons in place to indicate to the user that the menu is there. Then, when the user moves their mouse over the menu or tabs to a menu item, you can fade in the labels. This way, when the user mouses near the icons, the entire menu appears, using a number of effects all at once: the background and the labels will fade in, with the labels starting a little to the left of their final position (figure 15.9).
This effect requires two separate transitions on the labels at the same time: one for opacity and another for a translate() transform. Update this portion of your stylesheet, making the changes indicated in the following listing.
Listing 15.9. Transitioning in the nav-item labels
@media (min-width: 30em) { .nav-links { display: block; padding: 1em; margin-bottom: 0; } .nav-links > li + li { margin-left: 0; } .nav-links__label { display: inline-block; 1 margin-left: 1em; padding-right: 1em; opacity: 0; 2 transform: translate(-1em); 3 transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3), 4 opacity 0.4s linear; 4 } .nav-links:hover .nav-links__label, 5 .nav-links a:focus > .nav-links__label { 5 opacity: 1; 5 transform: translate(0); 5 } .nav-links__icon { transition: transform 0.2s ease-out; } .nav-links a:hover > .nav-links__icon, .nav-links a:focus > .nav-links__icon { transform: scale(1.3); } }1 Makes the label an inline-block so transforms can be applied to it 2 Hides the label initially