animate-css / animate.css

🍿 A cross-browser library of CSS animations. As easy to use as an easy thing.
https://animate.style/
Other
80.72k stars 16.23k forks source link

On hover set animation via css #1545

Closed jack-fdrv closed 2 years ago

jack-fdrv commented 2 years ago

Describe The Bug

Please help me understand, why this works?

&:hover {
    -webkit-animation: flash 1s;
        animation: flash 1s;
}

And this one not?

&:hover {
    -webkit-animation: pulse 1s;
        animation: pulse 1s;
}

Steps To Reproduce

Html

<div class="buttons">
    <a class="btn animate__animated default" href="#">ENTER NOW</a>
    <a class="btn animate__animated bordered" href="#">FIND OUT MORE</a>
</div>
.default:hover {
    -webkit-animation: flash 1s;
        animation: flash 1s;
}
.bordered:hover {
    -webkit-animation: pulse 1s;
        animation: pulse 1s;
}

Expected Behavior

Second button should has pulse animation

Screenshots

No response

Desktop

No response

Smartphone

No response

Additional Context

No response

jack-fdrv commented 2 years ago

I forgot to set display: inline-block;