11K views
CSSAdd prefixes
1button { 2 cursor: pointer; 3 font-weight: 700; 4 font-family: Helvetica,"sans-serif"; 5 transition: all .2s; 6 padding: 10px 20px; 7 border-radius: 100px; 8 background: #cfef00; 9 border: 1px solid transparent; 10 display: flex; 11 align-items: center; 12 font-size: 15px; 13} 14 15button:hover { 16 background: #c4e201; 17} 18 19button > svg { 20 width: 34px; 21 margin-left: 10px; 22 transition: transform .3s ease-in-out; 23} 24 25button:hover svg { 26 transform: translateX(5px); 27} 28 29button:active { 30 transform: scale(0.95); 31} 32 33
HTML
1<button> 2 <span>Continue</span> 3 <svg width="34" height="34" viewBox="0 0 74 74" fill="none" xmlns="http://www.w3.org/2000/svg"> 4 <circle cx="37" cy="37" r="35.5" stroke="black" stroke-width="3"></circle> 5 <path d="M25 35.5C24.1716 35.5 23.5 36.1716 23.5 37C23.5 37.8284 24.1716 38.5 25 38.5V35.5ZM49.0607 38.0607C49.6464 37.4749 49.6464 36.5251 49.0607 35.9393L39.5147 26.3934C38.9289 25.8076 37.9792 25.8076 37.3934 26.3934C36.8076 26.9792 36.8076 27.9289 37.3934 28.5147L45.8787 37L37.3934 45.4853C36.8076 46.0711 36.8076 47.0208 37.3934 47.6066C37.9792 48.1924 38.9289 48.1924 39.5147 47.6066L49.0607 38.0607ZM25 38.5L48 38.5V35.5L25 35.5V38.5Z" fill="black"></path> 6 </svg> 7</button>