CSS transitions: Strange unwanted delay in Webkit browsers (Chrome and Safari)

前端 未结 4 1552
一生所求
一生所求 2020-12-11 17:39

I was hoping someone could help explain the strange behaviour I\'m experiencing in Webkit browsers with unwanted delays in CSS transitions.

Here is a link to the pag

4条回答
  •  囚心锁ツ
    2020-12-11 18:01

    Another reason for unwanted delays is with overflow: hidden;. If you have a dropdown toggle navbar for example: When it is toggled open, and the max-height is set to 1000px, whilst also having the CSS property overflow: hidden;, it will take longer to transition from its max-height to closed.

提交回复
热议问题