I'm attempting to create an image that fades in from the left upon loading until it reaches a certain point on the screen. Despite thinking my code is correct, nothing is happening. Can someone please assist me with this issue? Here is the function I am using for the image's animation:
<script src="http://code.jquery.com/jquery-1.10.1.min.js">
$(document).ready(function(2000,slow){
$(".img-fade").animate({left:200, opacity:"show"}, 1500);
});
</script>
Here is how I am implementing it in the html:
<div class="latest-updates-portofolio " >
<div class=".img-fade">
<img src="img/logo.png" width="180px" height="180px">text
</div>
</div>
The .img-fade
class is simply a placeholder class used for the function. Also, I have one more question: How can I make the image animate to the left 2 seconds after the page finishes loading? Thank you.