FadeIn Effect using Jquery
-
Hello. I’m tryin to put a fade in effect onload of the images of my post, using the jQuerty that comes with WP.
So i have this in my Header.php :
<?php wp_enqueue_script('fade', '/javascript/fadein.js', array('jquery')); ?>
Then the folowing JS in a file : :
function fade() { jQuery('#Picture').load(function(){jQuery("#Picture").fadeIn(600);}) }
Then in my post the image is like :
<img src="https://www.…hop_03.jpg" id="Picture" width="648" height="486" border="0" />
But it gives no results. Any idea ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘FadeIn Effect using Jquery’ is closed to new replies.