Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Not allowed! · gharsh11032000
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By gharsh11032000
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 Not allowed! · gharsh11032000
Not allowed! · gharsh11032000 is an animated CSS button by gharsh11032000. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, Icon, 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="button">
<span>Not allowed!
</span>
<span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-miterlimit="2" stroke-linejoin="round" fill-rule="evenodd" clip-rule="evenodd"><path fill-rule="nonzero" d="m12.002 2.005c5.518 0 9.998 4.48 9.998 9.997 0 5.518-4.48 9.998-9.998 9.998-5.517 0-9.997-4.48-9.997-9.998 0-5.517 4.48-9.997 9.997-9.997zm0 1.5c-4.69 0-8.497 3.807-8.497 8.497s3.807 8.498 8.497 8.498 8.498-3.808 8.498-8.498-3.808-8.497-8.498-8.497zm0 7.425 2.717-2.718c.146-.146.339-.219.531-.219.404 0 .75.325.75.75 0 .193-.073.384-.219.531l-2.717 2.717 2.727 2.728c.147.147.22.339.22.531 0 .427-.349.75-.75.75-.192 0-.384-.073-.53-.219l-2.729-2.728-2.728 2.728c-.146.146-.338.219-.53.219-.401 0-.751-.323-.751-.75 0-.192.073-.384.22-.531l2.728-2.728-2.722-2.722c-.146-.147-.219-.338-.219-.531 0-.425.346-.749.75-.749.192 0 .385.073.531.219z"></path></svg>
</span>
</button>CSS
.button {
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
padding: 15px 20px;
background-color: #212121;
border: none;
font: inherit;
color: #e8e8e8;
font-size: 20px;
font-weight: 600;
border-radius: 50px;
cursor: not-allowed;
overflow: hidden;
transition: all 0.3s ease cubic-bezier(0.23, 1, 0.320, 1);
}
.button span {
position: relative;
z-index: 2;
display: flex;
align-items: center;
}
.button::before {
position: absolute;
content: '';
width: 100%;
height: 100%;
translate: 0 105%;
background-color: #F53844;
transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}
.button svg {
width: 32px;
height: 32px;
fill: #F53844;
transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}
.button:hover {
animation: shake 0.2s linear 1;
}
.button:hover::before {
translate: 0 0;
}
.button:hover svg {
fill: #e8e8e8;
}
@keyframes shake {
0% {
rotate: 0deg;
}
33% {
rotate: 10deg;
}
66% {
rotate: -10deg;
}
100% {
rotate: 10deg;
}
}