on-internet
← Community

Using :hover to trigger @keyframes animation when the element uses multiple animations

Stack Overflow ·

I have a set of icons that transition from the center of the page to a set point, and then remain there. What I want to do is set them to transition to have a thicker border and scale to 130x130px whenever I mouse over one of them, but only the initial animation occurs CSS: .iconborder { border-width: 5px; border-style: solid; border-radius: 100em; border-color: white; } .iconborder:hover {animation-name: icongrow; animation-duration: 0.2s; animation-timing-function: cubic-bezier;} @keyframes icongrow { 0% { border-width: 5px; width: 100px; height: 100px; } 100% { border-width: 10px; width: 13

Comments

Sign in or sign up to comment and upvote.

No comments yet.