fadeto

jQuery Fading effect occuring multiple times

▼魔方 西西 提交于 2020-01-23 11:49:05
问题 I am trying to write a simple jQuery script to apply fading effect on footer. On mouseover event, it fades in with opacity = 1, and on mouse out event it fades out to opacity 0.01. I have applied this effect on parent div. The problem is, everytime I move mouse over child elements, it triggers the event and makes the div blink multiple times. How can I stop it? I want the mouseover and mouseout event to trigger when I hover over parent div and not when I move mouse inside the parent div. Here

jQuery FadeTo causing pixelated text in IE8 when font-weight: bold

北战南征 提交于 2020-01-01 10:12:35
问题 I am fading out, and in a div: $('.formErrors').fadeTo('fast', 0); $('.formErrors').fadeTo('slow', 1); But when I do this in IE 8, it seems this bit of CSS: .formErrors li { font-weight: bold; } Is causing the text to come back quite distorted: (image below) http://www.newmania.com/images/error.jpg The HTML I am applying this to is: <div class="formErrors"> There are errors in your submission. Please fix the following and try again: <ul><li>Action is empty</li></ul> </div> It works fine in

.fadeTo not able to delay to fade

自古美人都是妖i 提交于 2019-12-12 06:15:28
问题 Trying to delay fade 500 to 1000, but when i change .fadeTo('500', 1); to .fadeTo('1000', 1); it's not delay to fade. Same timing, no difference between 500 to 1000. Jquery: $(".more-post").one("click", function () { $('.bottom-post').addClass('show-more').fadeTo('500', 0); setTimeout(function(){ $('.bottom-post').addClass('show-more').fadeTo('500', 1); },4000); }); This Jquery fade very fast, So how to fade delay more .fadeTo('1000', 1); . Want to fade more slow. Thanks. 回答1: When i removed

How to add a fadeIn effect while changing background image using .css in Jquery

偶尔善良 提交于 2019-12-11 03:23:30
问题 Hey guys, Im trying to add a fadein effect while changing my background image using .css in Jquery I dont really know much about java, hoping someone can help me out here! The code for changing css background image is pretty simple here: $(document).ready(function(){ $("#button01").click(function () { $("#content_wrapper").css({backgroundImage : 'url(image/staff/shinji.jpg)' } ); }); }); It's like a image gallery, Im just showing it in css background image everything works fine, but I was

jQuery Fading effect occuring multiple times

你离开我真会死。 提交于 2019-12-06 06:09:00
I am trying to write a simple jQuery script to apply fading effect on footer. On mouseover event, it fades in with opacity = 1, and on mouse out event it fades out to opacity 0.01. I have applied this effect on parent div. The problem is, everytime I move mouse over child elements, it triggers the event and makes the div blink multiple times. How can I stop it? I want the mouseover and mouseout event to trigger when I hover over parent div and not when I move mouse inside the parent div. Here is the situation Thanks for any help in advance... :) You should be able to use the stop() function to

jQuery FadeTo causing pixelated text in IE8 when font-weight: bold

耗尽温柔 提交于 2019-12-04 08:22:07
I am fading out, and in a div: $('.formErrors').fadeTo('fast', 0); $('.formErrors').fadeTo('slow', 1); But when I do this in IE 8, it seems this bit of CSS: .formErrors li { font-weight: bold; } Is causing the text to come back quite distorted: (image below) http://www.newmania.com/images/error.jpg The HTML I am applying this to is: <div class="formErrors"> There are errors in your submission. Please fix the following and try again: <ul><li>Action is empty</li></ul> </div> It works fine in Firefox. Any ideas please? A common solution is to define a background color, if you don't already have