更新时间:2022-06-26 07:27:37
您已经差不多了,但是选择 ease
函数可以使动画具有微妙的专业感.我会尝试像这样的更柔和的过渡:
You are almost there, but what gives that subtle touch of professionality to the animation is the choice of the ease
function. I would try with a softer transition like this one:
transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 400ms;