I
I
Ingerniated2018-02-17 02:34:24
css
Ingerniated, 2018-02-17 02:34:24

How to set different times for different animations for the same element?

I want to make my text color change on hover within 200ms, and background 400ms.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-02-17
@Ingernirated

You can specify several properties, each with its own animation time, separated by commas. Like like this :
transition: color 1s, background-color 5s;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question