#e8e8e8
1.button { 2 padding: 1em 2em; 3 border: none; 4 border-radius: 5px; 5 font-weight: bold; 6 letter-spacing: 5px; 7 text-transform: uppercase; 8 color: #2c9caf; 9 transition: all 1000ms; 10 font-size: 15px; 11 position: relative; 12 overflow: hidden; 13 outline: 2px solid #2c9caf; 14} 15 16button:hover { 17 color: #ffffff; 18 transform: scale(1.1); 19 outline: 2px solid #70bdca; 20 box-shadow: 4px 5px 17px -4px #268391; 21} 22 23button::before { 24 content: ""; 25 position: absolute; 26 left: -50px; 27 top: 0; 28 width: 0; 29 height: 100%; 30 background-color: #2c9caf; 31 transform: skewX(45deg); 32 z-index: -1; 33 transition: width 1000ms; 34} 35 36button:hover::before { 37 width: 250%; 38} 39
Comments
1tamakachi 29. July at 13:59
29. July at 13:59
This is great, thank you
Variations
1 MIT License