+ 1

How to freeze a transition once it has reached the end ?

I'm still kinda new to CSS so I don't know if it's possible but hopefully it is, I would like to know how to freeze a transition once it has reached the end. Here's a example. Try to make my first 2 boxes freeze at the end of the transition https://code.sololearn.com/W8pD22B3B5S8/?ref=app

28th Dec 2018, 5:01 AM
Eternal Master
Eternal Master - avatar
5 odpowiedzi
+ 1
Instead, add mouseover listener on the targets to reset the width. https://code.sololearn.com/Wt9r2U5KlU2J/?ref=app
28th Dec 2018, 5:58 AM
Gordon
Gordon - avatar
+ 2
It shrinks because you are using pseudo class of hover. Don't use hover.
28th Dec 2018, 5:39 AM
Gordon
Gordon - avatar
0
forwards
28th Dec 2018, 5:05 AM
Gordon
Gordon - avatar
0
I think you misunderstood my question so here's a example. Try to make my first 2 boxes freeze at the end of the transition https://code.sololearn.com/W8pD22B3B5S8/?ref=app
28th Dec 2018, 5:26 AM
Eternal Master
Eternal Master - avatar
0
Thank you Gordon.
28th Dec 2018, 6:00 AM
Eternal Master
Eternal Master - avatar