search

Home  >  Q&A  >  body text

How to achieve arc-shaped motion trajectory in css3

Because I want to make the petals fall realistically
Now I just add a breakpoint at the middle point but the movement is very stiff
How can I use css3 keyfames to create that arc-shaped movement trajectory
Thank you very much for help

扔个三星炸死你扔个三星炸死你2745 days ago2134

reply all(3)I'll reply

  • 三叔

    三叔2017-07-01 09:14:22

    It should be possible, but you need to calculate the changing parameters

    reply
    0
  • 某草草

    某草草2017-07-01 09:14:22

    I made an effect of gold coins falling
    This is what my animation says

    @keyframes drop
        0%
          transform: translate(0,0) rotate3d(0,1,0,0deg)
        33%
          transform: translate(-20px,245px) rotate3d(0,1,0,-60deg)
        66%
          transform: translate(20px,490px) rotate3d(0,1,0,60deg)
        100%
          transform: translate(0,736px) rotate3d(0,1,0,0deg)
      @keyframes drop2
        0%
          transform: translate(0,0) rotate3d(1,0,0,0deg)
        33%
          transform: translate(20px,245px) rotate3d(1,0,0,60deg)
        66%
          transform: translate(-20px,490px) rotate3d(1,0,0,-60deg)
        100%
          transform: translate(0,736px) rotate3d(1,0,0,0deg)

    reply
    0
  • 巴扎黑

    巴扎黑2017-07-01 09:14:22

    The time parameter of the curve is constant speed horizontally and variable speed vertically. Or conversely, it can simulate the curve time parameters

    reply
    0
  • Cancelreply