Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Click me! · KlaujonRuamni
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By KlaujonRuamni
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 Click me! · KlaujonRuamni
Click me! · KlaujonRuamni is an animated CSS button by KlaujonRuamni. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, Animated
- 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 class="beautiful-button">
Click me!
</button>CSS
.beautiful-button {
position: relative;
display: inline-block;
background: linear-gradient(to bottom, #1b1c3f, #4a4e91);
/* Gradient background */
color: white;
/* White text color */
font-family: "Segoe UI", sans-serif;
/* Stylish and legible font */
font-weight: bold;
font-size: 18px;
/* Large font size */
border: none;
/* No border */
border-radius: 30px;
/* Rounded corners */
padding: 14px 28px;
/* Large padding */
cursor: pointer;
/* Cursor on hover */
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
/* Subtle shadow */
animation: button-shimmer 2s infinite;
transition: all 0.3s ease-in-out;
/* Smooth transition */
}
/* Hover animation */
.beautiful-button:hover {
background: linear-gradient(to bottom, #2c2f63, #5b67b7);
animation: button-particles 1s ease-in-out infinite;
transform: translateY(-2px);
}
/* Click animation */
.beautiful-button:active {
transform: scale(0.95);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
/* Shimmer animation */
@keyframes button-shimmer {
0% {
background-position: left top;
}
100% {
background-position: right bottom;
}
}
/* Particle animation */
@keyframes button-particles {
0% {
background-position: left top;
}
100% {
background-position: right bottom;
}
}