Frosted Sheen Pill
Buttons @bhaskar Stars:0 Views:0
<div class="sh"><button class="sh__b" type="button"><span>Get started</span></button></div>
<style>
.sh{display:grid;place-items:center;width:340px;height:170px;border-radius:24px;background:radial-gradient(circle at 18% 28%,#2bb5a0,rgba(43,181,160,0) 55%),radial-gradient(circle at 85% 80%,#c8d44a,rgba(200,212,74,0) 55%),linear-gradient(120deg,#13887e,#5f9f2c 70%,#a9bd36)}
.sh__b{position:relative;overflow:hidden;padding:18px 42px;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:linear-gradient(rgba(255,255,255,.3),rgba(255,255,255,.1));-webkit-backdrop-filter:blur(8px) saturate(1.2);backdrop-filter:blur(8px) saturate(1.2);color:#17372a;font:500 17px/1 system-ui,sans-serif;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 -1px 0 rgba(255,255,255,.2),0 8px 24px rgba(0,0,0,.18);transition:background .25s ease,transform .15s ease}
.sh__b::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.35) 50%,transparent 70%);transform:translateX(-30%);transition:transform .5s ease}
.sh__b:hover{background:linear-gradient(rgba(255,255,255,.18),rgba(255,255,255,.04))}
.sh__b:hover::after{transform:translateX(30%)}
.sh__b:active{transform:scale(.98)}
.sh__b span{position:relative;z-index:1}
.sh__b:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.sh__b,.sh__b::after{transition:none}}
</style>