2017-08-11 48 views

回答

0

你可以发布你的代码?你可以尝试使用类似这样的jQuery效果:

<div id="clickme"> 
Click here 
</div> 
    <img id="book" src="book.png" alt="" width="100" height="123"> 

    // With the element initially hidden, we can show it slowly: 
    $("#clickme").click(function() { 
    $("#book").fadeIn("slow", function() { 
    // Animation complete 
    }); 
}); 
0

根据你的链接,你不必使用JS褪色库 可以使用CSS3 只是这2行加入到你的CSS处理它

.slide { 
    opacity: 0; 
    transition: all 0.5s ease; 
} 
+0

它的工作!非常感谢!很简单 :-) – Perla

相关问题