开发者

smoother jquery transitions

开发者 https://www.devze.com 2023-01-04 21:11 出处:网络
Please see: http://jasondaydesign.com/masonry_demo/ and click on the movemaine.com image I would like my transitions with the show & hide, plus the masonry rearrange to be smoother overall. I\'ve

Please see: http://jasondaydesign.com/masonry_demo/ and click on the movemaine.com image

I would like my transitions with the show & hide, plus the masonry rearrange to be smoother overall. I've played with the speeds and i'm not getting the results I want.开发者_Go百科

Additionally, I would like a pointer cursor with the show hide, but I can't seem to get that to work. Thoughts?

and thanks!


Have you checked out any of jQuery's easing Plugins?

Edit: regarding CSS/changing the cursor. Adding the following rule should do the trick:

.expandable {
  cursor: pointer;
}


I love the concept, but I'm afraid you're just bumping into the limitations of what the browser can handle. About the only thing you can do is make sure that everything that moves is position: absolute so the browser doesn't have to reflow anything during an animation.

Maybe try moving them one at a time, or one column at a time, but very quickly. It would be a slightly different effect, but it would cut down on the number of concurrent animations. Or you could slide the first two columns down to accommodate the larger image.

Regarding the cursor, you can probably do that with CSS like {cursor:hand;}. Google "css cursor types" and you'll see what the options are.

0

精彩评论

暂无评论...
验证码 换一张
取 消