#e8e8e8
1.swipe-button { 2 padding: 10px 20px; 3 font-size: 18px; 4 border: none; 5 background: linear-gradient(45deg, #3498db, #e74c3c, #9b59b6, #2ecc71); 6 background-size: 200% 200%; 7 background-position: 0 0; 8 color: white; 9 border-radius: 5px; 10 cursor: pointer; 11 font-family: sans-serif; 12 transition: background-position 0.5s ease-in-out, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; 13} 14 15.swipe-button:hover { 16 background-position: 100% 100%; 17 transform: scale(1.05); 18 box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1); 19} 20 21.swipe-button:active { 22 transform: translateY(2px); 23 color: #fff; 24 /* Change text color when active */ 25} 26
234 views
234 views
Comments
MIT License