JSFiddle - React, Tailwind, and code Playground
by Brodingo
HTML
<input type="submit" value="Search">
<br><br>
<input type="submit" value="Search" style="border-radius:14px">
<br><br>
<input type="submit" value="Search" class="pulse">
<br><br>
<input type="submit" value="Search" style="font-size:24px">
<br><br>
<input type="submit" value="Search" style="font-size:24px;border-radius:0">
<br><br>
<input type="submit" value="Search" class="pulse" style="font-size:24px">
<br><br>
<input type="submit" value="Search" style="font-size:48px">
<br><br>
<input type="submit" value="Search" style="font-size:72px">
CSS
input[type=submit] {
border: 1px solid #b06000;
background-color: #d08010;
color: #fff;
text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
padding: 4px 8px;
background-image: -webkit-gradient(linear, left top, left bottom,
from(rgba(255,255,255,0.6)),
color-stop(0.05, rgba(255,255,255,0.4)),
to(rgba(255,255,255,0.0)));
background-image: -moz-linear-gradient(top,
rgba(255,255,255,0.6),
rgba(255,255,255,0.4) 5%,
rgba(255,255,255,0.0));
background-image: linear-gradient(top,
rgba(255,255,255,0.6),
rgba(255,255,255,0.4) 5%,
rgba(255,255,255,0.0));
font-size: 14px;
white-space: nowrap;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
-webkit-background-clip: padding;
-moz-background-clip: padding;
background-clip: padding-box;
-webkit-transition: background-color 0.1s ease-out;
-moz-transition: background-color 0.1s ease-out;
-o-transition: background-color 0.1s ease-out;
transition: background-color 0.1s ease-out;
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
overflow:hidden;
}
input[type=submit]:hover {
background-color: #e09020;
color: #fff;
text-decoration: none;
}
input[type=submit]:active {
background-color: #b06010;
color: #fff;
background-image: -webkit-gradient(linear, left top, left bottom,
from(rgba(255,255,255,0.4)),
to(rgba(255,255,255,0.0)));
background-image: -moz-linear-gradient(top,
rgba(255,255,255,0.4),
rgba(255,255,255,0.0));
background-image: linear-gradient(top,
rgba(255,255,255,0.4),
rgba(255,255,255,0.0));
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0...
JavaScript
// chrome box-shadow overflow bug
// seems to appear when border radius is larger than it needs to be to make the corners as round as possible
// also curious, appears at the end of the animation when held down in an active state for the smaller one, not for the 24px one