问题标签 [fadein]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
jquery - jQuery在鼠标悬停时淡入/淡出?
我在以下结构中有链接,我想知道 jQuery/css 应该是什么来隐藏<img />
标签并在鼠标悬停时淡入它们。
这里的想法是 HTML <img> 被隐藏并在鼠标悬停时淡入以提供平滑的效果。
同时,CSS 背景显示在开头。
HTML:
<div id="nav">
<a href="blah" id="id1">
<img src="hoverimg.png" alt="链接文本 1" /> <span> 链接文本 1 </span> </a>
<img src="hoverimg2.png" alt="链接文本 2" /> <span> 链接文本 2 </span> </a>
</div>
CSS:
jQuery:
顺便说一句,我注意到如果目标元素是嵌套了几层深的子节点,jQuery 将多次运行动画。有没有办法阻止这种情况?
jquery - jquery 淡入淡出元素不显示样式为“可见性:隐藏”的元素
我有一堆缩略图,我正在加载它们的样式,visibility: hidden;
以便它们都保持正确的布局。页面完全加载后,我有一个淡入淡出它们的 jquery 函数。当它们的样式设置为时,这很有效,display: none;
但显然布局搞砸了。有什么建议么?
这是淡入淡出线:
jquery - 鼠标滚动时的 JQuery FadeIn/FadeOut
我想知道 jQuery 是否可以处理以下操作:
当读者开始向下滚动 Blogspot 博客页面时,我想显示 url 链接。这些链接将一直保持 100% 可见,直到读者将页面滚动到顶部(0% 可见)。
我找到了一个 jQuery,它就在这里。
但这就像滚动到网站按钮的顶部一样。我希望我的 jQuery 完全像这样工作,但不是在鼠标点击时滚动到顶部,而是将阅读器重定向到特定的 url 链接(在鼠标点击时)。
是否有可能做到这一点?
谢谢你。
jquery - jQuery淡入/淡出循环问题
我正在尝试使用循环制作顺序动画......但我无法以流畅的方式完成它(一些“滞后”问题)。
jQuery
CSS
HTML
谢谢!
jquery - 闪烁一个项目。(Jquery FadeIn FadeOut ?)
我有两个要同时闪烁的 div,直到用户将鼠标悬停在其中一个上。
我将有一个悬停事件,将 shouldiblink 设置为“0”。问题是一旦页面准备好并且浏览器崩溃,循环就会开始。
我坚持这个解决方案,我现在想不出替代方案。
你能帮助我吗?
非常感谢你。
jquery - jQuery fadeIn 因 jQuery 表单插件而失败
当表单成功发送时,我有一条消息要淡入。我正在使用 jQuery 表单插件和代码:
验证功能完美运行,因此我在返回true之前添加了此代码:
(...)
这应该在表单下方的 div 中淡入淡出,样式为 display: none;。
但是发生的是 div 淡入然后消失。有没有人有解释和可能的解决方案?先感谢您!
代码可以在这里看到错误操作:http: //gadebold.dk/events/tilmeld/
jquery - JQUERY fadeIn - 为什么它闪烁整个 UL,而不是正在附加的 LI?
鉴于以下情况:
为什么它会在整个 taglist LI 列表中淡入淡出,而不是仅仅添加我想要发生的新项目?
谢谢
jquery - 一个接一个地淡化多个元素
有没有可能的解决方案,一个接一个地淡入(500)多个列表元素?
jquery - Stop jQuery animation prematurely
I'm trying to fadeIn and fadeOut a transparent png using JQuery. Of course, it looks slick in Firefox, but significantly less than acceptable in IE (7 and 8). It's a known bug with IE, and unfortunately there doesn't seem to be much of a workaround.
Basically what I'm doing is place a semi-transparent white rectangle over an image to make the image appear 'in the background'. I want to do this smoothly, and that's where fadeIn comes in. Because of the IE bug, however, I've been forced to fadeIn a completely opaque white rectangle over the image instead, making it unfortunately disappear. While this looks significantly better and is ALMOST what I'm looking for, it's still not acceptable. The user needs to be able to see SOME image on the page, albeit in the background.
So my question is this:
Is there a way to stop the fadeIn function (or any jquery animation, really) after animating for 75% of its expected animation time?
This would leave my image 75% mixed the white rectangle, and I wouldn't have to deal with IE's nasty transparent png bug.
Thanks!
jquery - jQuery Cycle Plugin:如何使用加载背景 gif 预加载第一张图像,然后淡入 Cycle Slideshow?
我正在为此苦苦挣扎,也许你们中的一些人可以帮助...
我使用 jQuery Cycle 插件在 www.theoribeiro.com 上有一个带有大图像的主页幻灯片
图像很大,有时连接速度很慢(但即使在快速连接中),幻灯片开始的行为非常难看,突然或半载显示图像。
我想确保在幻灯片开始之前至少加载 2 或 3 个第一张图像,同时我想运行加载动画 gif,然后我想淡入第一张图像。
我在互联网和论坛上进行了很多搜索,并在我对 javascript 和 jQuery 知识有限的情况下尝试了很多东西,但无法提出解决方案。
任何帮助将不胜感激!!!