Slide a div offscreen using jQuery

后端 未结 4 530
感动是毒
感动是毒 2020-12-07 09:55

This is a bit of a challenge. Here\'s what I\'m looking for:

  1. 3 divs on screen
  2. Div 1 resides in the middle of the page (centered)
  3. Div 2 reside
4条回答
  •  忘掉有多难
    2020-12-07 10:27

    Maybe I misinterpreted. I though you wanted three divs in a row, and only the ones on the end sliding and whatnot.

    http://jsfiddle.net/acsfy/

    (I know you're using jQuery for this, but it pissed me off as I was trying to force it to work. You'd have to adapt this for your purposes.)

提交回复
热议问题