Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Follow me · alshahwan
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By alshahwan
Button submission checks
Checks will appear after the preview updates.
Buttons only: no full pages, forms, cards or navigation. Put scripts in the JavaScript tab. Tailwind uses utilities from HTML and JavaScript; use complete class names. Custom CSS supports plain CSS, without @apply, imports or plugins.
Accessibility quick check
Waiting for the rendered preview…
Try Tab, Enter and Space in the preview. Check the focus ring, hover and disabled states, then enable Reduce motion. These checks are guidance, not an accessibility certification.
Explore freely here. Remix to publish your version with credit to the creator.
About Follow me · alshahwan
Follow me · alshahwan is an animated CSS button by alshahwan. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, Icon, Social
- Using this example
- Copy the HTML or download index.html, style.css and app.js. Test keyboard focus, motion and contrast in your own project.
Usage, Tailwind and licensing questions
Read the source files
HTML
<button>
<p>Follow me</p>
<svg viewBox="0 0 16 16" class="bi bi-whatsapp" fill="currentColor" height="16" width="16" xmlns="http://www.w3.org/2000/svg">
<path d="M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248-.822 0-1.359.54-1.359 1.248 0 .694.521 1.248 1.327 1.248h.016zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225h2.4z"></path>
</svg>
</button>CSS
button {
background-color: #fff;
border: 1px solid #0077b5;
padding: 5px;
position: relative;
width: 7.2em;
height: 2em;
transition: 0.5s;
font-size: 17px;
border-radius: 0.4em;
}
button p {
position: absolute;
top: 0.4em;
left: 1.2em;
margin: 0;
padding: 0;
transition: .5s;
color: #0077b5;
}
button svg {
position: absolute;
top: 0.45em;
right: 0.5em;
margin: 0;
padding: 0;
opacity: 0;
transition: 0.5s;
height: 1em;
fill: #fff
}
button:hover p {
left: 0.6em;
color: #fff
}
button:hover svg {
opacity: 1;
}
button:hover {
background-color: #0077b5;
}