Transition style does not take effect

what is the reason why the transition excessive time does not take effect

Css
Mar.02,2021

transition needs trigger timing, for example, if you want a div, transition, can click on the div, and add a transform: translateY (1000rpx to the css attribute of the div), so that the div will move from the original position to 1000rpx after you click. To sum up, you need a trigger time. If you want to achieve the desired translateY (1000rpx) effect without any trigger events, you can use animation.

      animation: animate 0.4s ease-out;
      :
      @keyframes animate {
      from {
        transform: translateX(0px);
      }
      to {
        transform: translateX(500px);
      }
    }
Menu