Hover Delete Icon Animated Button #103

CSS Delete icon button hover animated icon

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-103">
    <span class="text-103">Button 103</span>
    <span class="icon-103"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
            <path d="M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z"></path></svg>
    </span>
</button>
Button CSS
.btn-103 {
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
    background: #f35e2f;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    font-size: 16px;
}

.btn-103,
.btn-103 span {
    transition: 200ms;
}

.btn-103 .text-103 {
    transform: translateX(15px);
    color: white;
    font-weight: bold;
}

.btn-103 .icon-103 {
    position: absolute;
    border-left: 1px solid #f35e2f;
    right: 0;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-103 svg {
    width: 15px;
    fill: #eee;
}

.btn-103:hover {
    background: #c91616;
}

.btn-103:hover .text-103 {
    color: transparent;
    opacity: 0;
}

.btn-103:hover .icon-103 {
    width: 100%;
    border-left: none;
    transform: translateX(0);
}

.btn-103:focus {
    outline: none;
}

.btn-103:active .icon-103 svg {
    transform: scale(0.8);
}

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

.btn-103:disabled .text-103 {
    color: #7e7e7e;
}

.btn-103:disabled .icon-103 {
    border-left: 1px solid #bebebe;
}