Split Reveal
The button splits at the centre — top half slides up, bottom half slides down — both halves show the same text.
Split Reveal the 5th of 21 designs in the 21 CSS Button Hover Effects collection. The design is implemented in pure CSS — no JavaScript required. Copy the HTML and CSS panels below into your project. Because the demo is pure CSS, it works in any framework or templating engine you happen to use. The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.
Live preview
The code
<button class="bhe-05__btn"> <span class="bhe-05__top">Split Reveal</span> <span class="bhe-05__bottom" aria-hidden="true">Split Reveal</span> </button>
.bhe-05__btn {
padding: 12px 32px;
font-family: inherit;
border-radius: 8px;
letter-spacing: 0.02em;
background: transparent;
color: inherit;
}
.bhe-05__btn {
position: relative;
overflow: hidden;
border: 2px solid rgba(255, 255, 255, 0.15);
background: #17171f;
color: #fff;
font-size: 14px;
font-weight: 600;
cursor: pointer;
}
.bhe-05__top {
display: block;
clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.bhe-05__bottom {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: #7c6cff;
clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
transform: translateY(50%);
transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.bhe-05__btn:hover .bhe-05__top {
transform: translateY(-50%);
}
.bhe-05__btn:hover .bhe-05__bottom {
transform: translateY(0);
}