Hướng dẫn press effect css
View Discussion Improve Article Save Article View Discussion Improve Article Save Article In this tutorial, we are going to learn how to add a pressed effect on a button using CSS. This effect is a part of modern UI design and is used on many websites. This effect allows the user to experience an interaction with the button element as compared to the normal behavior. We’ll take advantage of the active pseudo class. This class is added to an HTML element automatically when it is clicked. Method 1: Example 1:
Output: Method 2: Example 2:
Output: You can play with other methods when the CSS is the foundation of webpages, is used for webpage development by styling websites and web apps.You can learn CSS from the ground up by following this CSS Tutorial and CSS Examples. |