MHK
Makini Hakim Kayira

Shadow Button Effect - Copy this React, Tailwind Component to your project

<! HTML ! > <button class="button 56" role="button">Button 56</button> /* CSS */ .button 56 { align items: center; background color: #fee6e3; border: 2px solid #111; border radius: 8px; box sizing: border box; color: #111; cursor: pointer; display: flex; font family: Inter,sans serif; font size: 16px; height: 48px; justify content: center; line height: 24px; max width: 100%; padding: 0 25px; position: relative; text align: center; text decoration: none; user select: none; webkit user select: none; touch action: manipulation; } .button 56:after { background color: #111; border radius: 8px; content: ""; display: block; height: 48px; left: 0; width: 100%; position: absolute; top: 2px; transform: translate(8px, 8px); transition: transform .2s ease out; z index: 1; } .button 56:hover:after { transform: translate(0, 0); } .button 56:active { background color: #ffdeda; outline: 0; } .button 56:hover { outline: 0; } @media (min width: 768px) { .button 56 { padding: 0 40px; } }

Prompt
Component Preview

About

ShadowButtonEffect - A sleek button with shadow effects, featuring a responsive design, hover animations, and built with React and Tai. Download instantly!

Share

Last updated 1 month ago