简体   繁体   中英

jquery effect does not want to work in google chrome. what's wrong?

I'm trying to make a fadeIn() and slideDown() in jquery, but it does not want to work in chrome. Here's the code

$(function (){

    $('#wrap h1').hide().slideDown(3000)
    $('.circles_1 img').hide().delay(3000).fadeIn(5000)

})

and here's the html code of it :

<section id="circles">

<figure class="circles_1"><a href="photoshop.html">image 1<img        src="images/photoshop.png"/></a></figure>

<figure class="circles_1"><a href="illustrator.html">image 2<img src="images/illustrator.png"/></a></figure>

<figure class="circles_1"><a href="indesign.html">image 3<img src="images/indesign.png"/></a></figure>

<figure class="circles_1"><a href="websites.html">image 4<img src="images/websites.png"/></a></figure>


</section>

JSFiddle测试,并且看起来工作正常,请确保已包含JQuery Library链接。

Import jquery < script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" >

and then try to load the function after the Dom is ready:

$( document ).ready(function() {
    $('#wrap h1').hide().slideDown(3000)**;**
    $('.circles_1 img').hide().delay(3000).fadeIn(5000)**;**
});

And dont forget the ;

Cheers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM