Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Powered By GPT-Omni · 0xnihilism
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By 0xnihilism
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 Powered By GPT-Omni · 0xnihilism
Powered By GPT-Omni · 0xnihilism is an animated CSS button by 0xnihilism. 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
<div class="button-container">
<a href="/" class="brutalist-button openai button-1">
<div class="openai-logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="openai-icon">
<path fill="#10A37F" d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.8956zm16.0993 3.8558L12.5907 8.3829 14.6108 7.2144a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.3927-.6813zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"></path>
</svg>
</div>
<div class="button-text">
<span>Powered By</span>
<span>GPT-Omni</span>
</div>
</a>
</div>CSS
.button-container {
display: flex;
justify-content: center;
gap: 20px;
}
/* Common styles for both buttons */
.brutalist-button {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 142px;
height: 142px;
color: #e5dede;
font-weight: bold;
text-decoration: none;
position: relative;
cursor: pointer;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* Styles for the first button */
.button-1 {
background-color: #063525;
border: 3px solid #42c498;
border-radius: 12px;
box-shadow: 4px 4px 1px #000000;
}
.button-1:hover {
background-color: #1a5c46;
border-color: #030504;
transform: translate(-6px, -6px) rotate(1deg);
box-shadow: 10px 10px 0 #000000, 15px 15px 20px rgba(64, 164, 122, 0.2);
}
.button-1::before,
.button-1::after {
content: "";
position: absolute;
top: 0;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.1),
transparent
);
transition: 0.6s;
}
.button-1::before {
left: -100%;
}
.button-1::after {
left: 100%;
}
.button-1:hover::before {
animation: swipeRight 1.5s infinite;
}
.button-1:hover::after {
animation: swipeLeft 1.5s infinite;
}
@keyframes swipeRight {
100% {
transform: translateX(200%) skew(-45deg);
}
}
@keyframes swipeLeft {
100% {
transform: translateX(-200%) skew(-45deg);
}
}
/* Hover effects */
.brutalist-button:hover .openai-logo {
transform: translateY(-10px);
}
.brutalist-button:hover .openai-icon {
width: 40px;
height: 40px;
}
.bruta.brutalist-button:hover .openai-text {
opacity: 1;
max-height: 60px;
margin-top: 8px;
}
/* Styles for the OpenAI logo and text */
.openai-logo {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
z-index: 3;
}
.openai-icon {
width: 64px;
height: 64px;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.openai-text {
font-size: 24px;
letter-spacing: 0.5px;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
opacity: 0;
max-height: 0;
overflow: hidden;
}
.button-text {
display: flex;
flex-direction: column;
align-items: center;
line-height: 1.2;
text-align: center;
opacity: 0;
max-height: 0;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
z-index: 3;
}
.button-text span:first-child {
font-size: 12px;
font-weight: normal;
}
.button-text span:last-child {
font-size: 16px;
}
/* Hover effects */
.brutalist-button:hover .openai-logo {
transform: translateY(-10px);
}
.brutalist-button:hover .openai-icon {
width: 40px;
height: 40px;
}
.brutalist-button:hover .button-text,
.brutalist-button:hover .openai-text {
opacity: 1;
max-height: 60px;
margin-top: 8px;
}
/* Animation for the OpenAI logo */
@keyframes spin-and-zoom {
0% {
transform: rotate(0deg) scale(1);
}
50% {
transform: rotate(180deg) scale(1.1);
}
100% {
transform: rotate(360deg) scale(1);
}
}
.brutalist-button:hover .openai-icon {
animation: spin-and-zoom 4s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}
.brutalist-button:hover .openai-text {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.brutalist-button:active .openai-icon,
.brutalist-button:active .openai-text,
.brutalist-button:active .button-text {
transform: scale(0.95);
}