开发者

How do I get this effect?

开发者 https://www.devze.com 2023-01-11 23:02 出处:网络
I seen many jquery plugins that do this and I am wondering if anyone knows how to do it(It would save me alot of time).

I seen many jquery plugins that do this and I am wondering if anyone knows how to do it(It would save me alot of time).

When you load up say the jquery ui dialog.

It pops up all flashy and the the background darkens.

http://jqueryui.com/demo开发者_C百科s/dialog/#modal

http://jreject.turnwheel.com/# (run any of the demos)

I think they use jquery fade in and out. But I am not sure. Probably most of the effects are from sort of css with a zindex.


A simply <div> that's the max size of the screen is the basis of it, for example here's blockUI's version:

<div style="z-index: 1000; border: none; margin: 0; padding: 0; width: 100%; height: 100%; top: 0px; left: 0px; background-color: rgb(0, 0, 0); cursor: wait; position: fixed; opacity: 0.6; "></div>

Here's a minimalist demo showing it in action

0

精彩评论

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

关注公众号