FAB rotating plus
FAB rotating plus: a CSS button. Copy the rules, or the prompt that rebuilds it.
CSS
.btn-168 {
width: 60px;
height: 60px;
display: inline-grid;
place-items: center;
color: #fff;
background: #0f172a;
border: 0;
border-radius: 50%;
cursor: pointer;
box-shadow: 0 8px 20px -4px #0f172a88;
transition: background .2s,box-shadow .2s
}
.btn-168 svg {
transition: transform .3s cubic-bezier(.4,0,.2,1)
}
.btn-168:hover {
background: #1e293b;
box-shadow: 0 12px 28px -6px #0f172aaa
}
.btn-168:hover svg {
transform: rotate(135deg)
}
.btn-168:focus-visible {
outline: 3px solid #0f172a;
outline-offset: 3px
}
.btn-168:active {
background: #020617
}
.btn-168:active svg {
transform: rotate(135deg) scale(.9)
}
HTML
<button class="btn-168" aria-label="More actions"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></button>Prompt
A 60px round dark #0f172a FAB with a white inline plus icon. On hover the plus rotates 135 degrees (becoming an x) over 300ms, the background lightens to #1e293b and the shadow (0 8px 20px) deepens. Active #020617 with the icon scaled 0.9. Focus 3px dark outline offset 3px.