Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Hey! Siri · barisdogansutcu
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By barisdogansutcu
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 Hey! Siri · barisdogansutcu
Hey! Siri · barisdogansutcu is an animated CSS button by barisdogansutcu. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- 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>
<span>Hey! Siri</span>
<div class="line"></div>
<div class="line-2"></div>
<div class="speak"></div>
<div class="speak one"></div>
<div class="speak two"></div>
<div class="speak three"></div>
</button>CSS
button {
min-height: 60px;
display: flex;
align-items: center;
justify-content: center;
max-width: 170px;
border-radius: 50px;
border-width: 0;
background-color: black;
color: white;
font-size: 16px;
letter-spacing: 3px;
position: relative;
overflow: hidden;
padding: 10px 20px;
width: 190px;
cursor: pointer;
}
button span {
position: relative;
width: max-content;
z-index: 99;
display: block;
}
.line,.line-2 {
position: absolute;
width: calc(100% - 20px);
left: 0;
right: 0;
margin: 0 auto;
height: 1px;
border-radius: 100%;
background-color: hsla(240, 100%, 50%, 0.39);
bottom: 5px;
animation: line .5s infinite linear;
box-shadow: 0 0 10px 2px rgb(0, 60, 255);
z-index: 9;
}
@keyframes line {
0% {
height: 1px;
background-color: hsla(240, 100%, 50%, 0.285);
}
50% {
transform: scaleY(5);
background-color: hsla(0, 59%, 41%, 0.032);
box-shadow: 0 0 100px 20px rgb(0, 60, 255);
}
100% {
height: 2px;
background-color: rgb(255, 255, 255)
}
}
.line-2 {
animation: line-2 .5s infinite linear;
bottom: 1px;
box-shadow: 0 0 10px 2px rgb(0, 60, 255);
}
@keyframes line-2 {
0% {
height: 1px;
background-color: hsl(327, 100%, 50%);
}
50% {
height: 2px;
background-color: hsl(0, 0%, 85%)
}
100% {
height: 2px;
background-color: rgb(255, 255, 255)
}
}
.speak {
position: absolute;
width: 330px;
height: 10px;
background-color: pink;
bottom: 1px;
left: 50%;
transform: translateX(-50%);
border-radius: 100%;
animation: speak .8s infinite linear;
}
.speak.one {
left: calc(50% + 20px);
animation: speak 6s infinite linear;
background-color: hsl(284deg 79% 55%);
}
.speak.two {
left: calc(50% + 10px);
animation: speak .6s infinite linear;
background-color: hsl(284deg 79% 55%);
}
.speak.two {
left: calc(50% + -10px);
animation: speak .6s infinite linear;
background-color: rgb(0, 255, 149);
}
@keyframes speak {
0% {
transform: translateX(-50%) scale(.10);
}
}