After animation?

So I have a card where if you hover then it scales up. If you remove hover it scales back to normal instantly. How do I make the scaling out as an animation as well?
.card:hover {
transition: ease 1s;
}
.card:hover {
transition: ease 1s;
}
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
glutonium
glutonium2y ago
well u won't need animation here it'll go like this
.card{
transition : 500ms ease-out;
}

.card:hover{
transform : scale(1.5);
}
.card{
transition : 500ms ease-out;
}

.card:hover{
transform : scale(1.5);
}
Want results from more Discord servers?
Add your server