Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery fade in problem
    primarykey
    data
    text
    <p>I'm trying to create a fade in effect using jQuery, html &amp; CSS with no avail. Basically, it's a navigation list with a gallery scroll effect using jQuery.. scrolling over contact link brings a popup with contact info and so on for services, about etc.. </p> <p>The gallery script I used can be found <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-image-swap-gallery/" rel="nofollow">here</a> </p> <p>whenever I apply .fadein(slow), I get the desired affect but in reverse. Instead of fading from transparent to opaque:::you get the picture. I have also tried </p> <pre><code>.animate({opacity: '0.5'}, 1000) </code></pre> <p>with the same results as above </p> <p>What my jOuery script looks like:</p> <pre><code>&lt;script type&gt; $(document).ready(function() { // Image swap on hover $("#gallery ul li img").hover(function(){ $('#main-img').stop().fadeTo('slow',0.3).siblings() .stop().fadeTo('slow',1.0).attr('src',$(this).attr('src').replace('thumb/', '')); }); // Image preload var imgSwap = []; $("#gallery ul li img").each(function(){ imgUrl = this.src.replace('thumb/', ''); imgSwap.push(imgUrl); }); $(imgSwap).preload(); }); $.fn.preload = function() { this.each(function(){ $('&lt;img/&gt;')[0].src = this; }); } &lt;/script&gt; </code></pre> <p>The html:</p> <pre><code>&lt;div id="left_nav"&gt; &lt;div id="gallery"&gt; &lt;img src="images/gallery/home.png" alt="" id="main-img" /&gt; &lt;ul&gt; &lt;li class="home"&gt;&lt;img src="images/gallery/thumb/home.png" alt="" /&gt;&lt;/li&gt; &lt;li class="about"&gt;&lt;img src="images/gallery/thumb/About Us.png" alt="" /&gt;&lt;/li&gt; &lt;li class="contact"&gt;&lt;img src="images/gallery/thumb/Contact Us.png" alt="" /&gt;&lt;/li&gt; &lt;li class="services"&gt;&lt;img src="images/gallery/thumb/Services.png" alt="" /&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>I have also tried reversing the opacity settings because it would seem like common sense. This results in an opaque affect only, no fade in. What I'm shooting for is a fade in affect for hover state of thumbs. Also, fade script doesn't seem to work in IE 8. Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload