Back to buttons

Live preview

Preview settings

Changes appear as you type. Use Tab to test keyboard focus.

⌘ / Ctrl + S saves locally

Shreyans2004's button

HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.

By @Shreyans2004

Remix button

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 Shreyans2004's button

Shreyans2004's button is an animated CSS button by @Shreyans2004. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.

Effects and categories
Hover effects, Icon
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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="styles.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Climate+Crisis&family=Dancing+Script&family=Gloock&family=Monoton&family=Open+Sans:ital,wght@1,700&family=Tilt+Neon&family=Tilt+Prism&display=swap" rel="stylesheet">
</head>
<body>
    <div>
    <pre><button><i class="bi bi-x"></i> Remove</pre>
    </div>
</body>
</html>

CSS


* {
  padding: 0!important;
  margin: 0!important;
  box-sizing: border-box!important;
}
body {
  display: flex!important;
  justify-content: center!important;
  align-items: center;
  height: 100vh!important;
  background-color: #212121;
}
/* 
1. Add your styles below this.
2. Don't change the above code.
3. You can change the background color of the body.
4. Remove the comments.
 */
body{
    height:48vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-size:18px;
    background:linear-gradient(90deg,#FFFF00 50%,	#90EE90 50%);
}
button{
    font-family: 'Tilt Prism', cursive;
    position: relative;
    right:-20px;
    height:200px;
    width:200px;
    border-radius: 20px;
    font-size:30px;
    color:black;
   background-color: aqua;
 font-weight: 700px;
    box-shadow: black 10px 10px 10px;
    transition: 0.5s;
}
button:hover{
    cursor: pointer;
    border-radius: 200px;
    box-shadow: black 0px 0px 0px 0px ; 
}
i{
    color:red;
    
}

JavaScript

// Add Your button script here