Animated Twitter Follow Button #186

CSS hover animated change text. Animated Twitter follow 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-186">
  <span class="btn-icon">
    <svg xmlns="http://www.w3.org/2000/svg" width="33" viewBox="0 0 60 60" height="33"><g fill-rule="evenodd" fill="none"><path fill="#00acee" d="m30 60c16.5685433 0 30-13.4314567 30-30s-13.4314567-30-30-30-30 13.4314567-30 30 13.4314567 30 30 30z"></path><path fill="#fff" d="m41.0521385 18.4366943c-1.2089539-1.3744928-2.9316-2.2502302-4.838077-2.2819633-3.6604615-.0609279-6.6284077 3.0321924-6.6284077 6.908385 0 .5501252.0586385 1.0865774.1717154 1.6015572-5.5087846-.3573206-10.3929-3.2259026-13.6619538-7.5499514-.5705539 1.0361399-.8975077 2.2471609-.8975077 3.5444286 0 2.455838 1.1701846 4.6353768 2.9487231 5.922267-1.0865077-.0479675-2.1085616-.3768796-3.0021923-.9164654-.0006462.029493-.0006462.0589929-.0006462.0890105 0 3.4295872 2.2848 6.3067451 5.3170385 6.9769758-.556177.1575997-1.1417539.240078-1.7462308.2360697-.4271077-.0028322-.8424231-.0501962-1.2470769-.13524.8433923 2.8126097 3.2911846 4.8649983 6.1917692 4.93286-2.2684846 1.8830683-5.1264231 3.0045653-8.232 2.998159-.5350154-.0011037-1.0626-.035675-1.5811385-.1021874 2.933377 2.0127143 6.4174385 3.1845715 10.1606077 3.1855535 12.1917923.0031987 18.8589693-10.6066422 18.8589693-19.8093844 0-.3019324-.0066231-.6022496-.0192231-.9011167 1.2950538-.9649855 2.4187154-2.1748628 3.3073385-3.556433-1.1886.5357972-2.4662077.8916496-3.8068154 1.0409189 1.3683923-.8421727 2.419523-2.1900418 2.9143154-3.8063795-1.2808385.7767339-2.6993077 1.3337545-4.2092077 1.6229359z"></path></g></svg>
    </span>
    <span class="btn-front-text">Follow 186</span>
    <span class="btn-back-text">10 k</span> 
</button>
Button CSS
.btn-186 {
    --width: 140px;
    --height: 40px;
    --border_radius: 30px;
    --bg_color: #fff;
    --color: #000;
    position: relative;
    width: var(--width);
    height: var(--height);
    padding: 0;
    border-radius: var(--border_radius);
    background: var(--bg_color);
    color: var(--color);
    border: 1px #00acee solid;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    font-size: 17px;
    font-weight: 700;
}

.btn-186 .btn-icon {
    position: absolute;
    top: 0;
    left: 4px;
    transition: all 0.5s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.btn-186 .btn-icon svg {
    width: 30px;
    height: 30px;
}

.btn-186 .btn-front-text {
    margin-left: 35px;
}

.btn-186 .btn-back-text {
    position: absolute;
    top: 0;
    left: calc(var(--width) * -1);
    font-weight: 700;
    font-size: 14px;
    color: white;
    background: #00acee;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s;
}

.btn-186:hover .btn-icon {
    left: 100%;
    transform: translate(-100%, 0%);
}

.btn-186:hover .btn-back-text {
    left: 100%;
    transform: translate(-100%, 0%);
}

.btn-186:active {
    transform: scale(1.03);
}

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

/*** dark mode ***/
html.dark-mode .btn-186 {
    --bg_color: #2e373a;
    --color: #fff;
}