In my page I have a bunch (about 30) dom nodes that should be added invisible, and fade in when they are fully loaded.
The elements need a display: inline-block style.

I would like to use the jquery .fadeIn() function. This requires that the element initially has a display: none; rule to initially hide it. After the fadeIn() the elements off course have the default display: inherit;

How can I use the fade functionality with a display value other than inherit?

推荐答案

您可以使用jQuery的animate函数自己更改不透明度,使显示不受影响.

Jquery相关问答推荐

将 jquery 元素转换为 html 元素

如果您的 Select 器对象无效,为什么 jQuery 不会炸弹?

jquery数据表隐藏列

为什么对同一个 ASP.NET MVC 操作的多个同时 AJAX 调用会导致浏览器阻塞?

jQuery / Ajax - $.ajax() 将参数传递给回调 - 使用好的模式?

输入类型=文件的jQuery更改方法

获取单选按钮组的值

ASP .NET MVC 在每个字段级别禁用客户端验证

在 Javascript 中,字典理解或 Object `map`

jquery获取帖子操作网址

Jquery .show() 不显示隐藏可见性的 div

Jquery - 如何获取样式显示属性无/块

Jquery Ajax 错误处理忽略中止

jQuery XML 错误请求的资源上不存在‘Access-Control-Allow-Origin’标头.

jQuery:如果页面底部有外部 JS,为什么要使用 document.ready?

如何删除/更改 JQuery UI 自动完成助手文本?

jQuery .hasClass() 与 .is()

jQuery位置href

我应该在addClass之前使用hasClass吗?

Drop 事件未在 chrome 中触发