+ 1

css hover transition is not working

I created a simple div element and gave following css properties div{ width: 100px; height: 100px; background: yellow; transition: 1s; } div:hover{ background: green; } But it dosent work on my ipad.I wrote the same code on an online html editor and it worked fine.I cant figure out the issue. Thanks for your time...👍🏻

18th Jul 2020, 7:48 AM
Razbry
Razbry - avatar
2 Antworten
+ 3
transition: background-color 1s; or transition: all 1s;
18th Jul 2020, 7:58 AM
Gordon
Gordon - avatar