This post is saved as a draft.
This post is saved as a draft.
#e8e8e8
1button { 2 position: relative; 3 font-weight: 600; 4 height: 40px; 5 padding: 12px 20px; 6 outline: none; 7 border: 1px solid black; 8 background-color: transparent; 9 border-radius: 5px; 10} 11 12button:after { 13 content: ""; 14 position: absolute; 15 top: 7px; 16 left: 7px; 17 height: 100%; 18 background-color: rgb(201, 184, 246); 19 z-index: -1; 20 transition: all 0.35s; 21 border-radius: inherit; 22} 23 24button:hover:after { 25 top: 0px; 26 left: 0px; 27} 28
3.3K views
3.3K views
MIT License