Hover Text Slide Animated Button #134

CSS Hover text slide animated button

Adding these style CSS buttons to your website is easier than you think. Simply copy and paste the CSS code provided with each button design into your stylesheet

Preview Button Style

You can view the default style of buttons, the disabled state mode style of buttons, and the full-width block style of the button here. Some buttons style may not display in full width format

Button style

Disabled style

Full width block style

Button Source Code HTML and CSS

Click the button below to download the source code or edit it live.
To copy this click on the icon at the top right of the code box
Button HTML
<button class="btn-134">Button 134</button>
Button CSS
.btn-134 {
    --height: 50px;
    --width: 170px;
    --text_color: #fff;
    --hover_text_color: #000000;
    padding: 5px 5px;
    height: var(--height);
    width: var(--width);
    background: #0fb46f;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 999px;
    box-sizing: border-box;
    color: transparent;
    font-weight: bold;
    overflow: hidden;
    position: relative;
    font-size: 16px;
    --move_text: 0px;
    text-shadow: 0 calc(var(--move_text) * -1) var(--text_color),
        0 calc(var(--height) - var(--move_text)) var(--hover_text_color);
    text-transform: uppercase;
    transition: 0.2s;
}

.btn-134:hover {
    --move_text: var(--height);
    border-color: #148053;
}

/*** disabled style ***/
.btn-134:disabled {
    pointer-events: none;
    opacity: .65;
    color: #7e7e7e;
    background: #dcdcdc;
    text-shadow: none;
    box-shadow: none;
}