csscss-transitionsbeziercubic-bezier

Understanding cubic-bezier transition property in CSS


I have a div which contains a some slides and menu.

#wrap {
    position: relative;
    top: 0;
    transition: top 1.4s cubic-bezier(.49,.22,.52,1.35);
}
<div id="wrap"></div>

Can anyone explain to me what the transition property does here?

I am not able to understand the effect it's going to produce on the div.


Solution

  • Answer for your question

    that property is for the animation of <div id="wrap"></div>.

    It means it will animate using top property!

    And for Effect: It will Bounce like This Will Be the transition Effect


    Understanding CSS cubic-bezier

    It takes four parameters:

    cubic-bezier(P1x,P1y,P2x,P2y)
    

    points cubucB

    what do these do?

    Well, these map to points, and these points are part of a Bézier curve:



    Helpful Links