#212121
1button { 2 color: white; 3 text-decoration: none; 4 font-size: 25px; 5 border: none; 6 background: none; 7 font-weight: 600; 8 font-family: 'Poppins', sans-serif; 9} 10 11button::before { 12 margin-left: auto; 13} 14 15button::after, button::before { 16 content: ''; 17 width: 0%; 18 height: 2px; 19 background: #f44336; 20 display: block; 21 transition: 0.5s; 22} 23 24button:hover::after, button:hover::before { 25 width: 100%; 26}
Comments
Variations
1 MIT License