:root{ --color: #1c6758; } .btn{ color: var(--color); font-family: 'Raleway', sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 8px 15px; border-radius: 5px; border: 1px solid var(--color); overflow: hidden; position: relative; z-index: 1; transition: all 0.35s; } .btn:hover, .btn:focus{ color: #fff; background: radial-gradient(circle,var(--color) 0.2em, transparent 0.3em) 6em 6em/1em 1em, radial-gradient(circle, var(--color) 0.2em, transparent 0.3em) 0 0/1em 1em; transition-delay: 0.2s; animation: ani500 0.6s forwards; } @keyframes ani500{ 100% { background-size: 2.375em 2.375em, 0.1em 0.1em; } } @media only screen and (max-width: 767px){ .btn{ margin-bottom: 30px; } }