JSFiddle - React, Tailwind, and code Playground
by rogeriolino
HTML
<button type="button" class="rounded-btn">Iniciar tour</button>
CSS
body {
background: #216B5B;
}
button.rounded-btn {
text-transform: uppercase;
text-align: center;
font-weight: bold;
padding: 18px 30px;
border-width: 2px;
border-style: solid;
position: relative;
background: transparent;
border-radius: 30px;
}
button.rounded-btn::before {
content: " ";
position: absolute;
border-radius: 25px;
border-width: 2px;
border-style: dotted;
top: 2px;
left: 2px;
right: 2px;
bottom: 2px;
}
button.rounded-btn,
button.rounded-btn::before {
color: #fff;
border-color: #fff;
}
button.rounded-btn:hover {
animation: blink .5s infinite;
}
button.rounded-btn:hover::before {
animation: pulse .5s infinite;
}
@keyframes pulse {
0% {
top: 2px;
left: 2px;
right: 2px;
bottom: 2px;
}
50% {
top: 4px;
left: 4px;
right: 4px;
bottom: 4px;
}
}
@keyframes blink {
50% {
border-color: red;
}
}