I am new to programming and eager to learn...
Currently, I am facing the following problem: I would like to create a functionality where three images can be changed using one button and incorporating fadeIn and fadeOut animations. Essentially, all images start as hidden, and upon clicking the button, the first image appears with a fadeIn effect. Upon the next click, the first image disappears and the second image appears, and so on...
This is my HTML setup..
<button id="animeButton">Animate</button> <br>
<img id="firstPic" class="images" src="http://paladone.com/
image/cache/data/Pacman/PP2723PM_pac_man_ghost_pixel_bricks-800x800.jpg">
<img id="secondPic" class="images" src="http://i2.wp.com/loyalkng.com/wp-
content/uploads/2009/05/furious-george.jpg?w=557">
<img id="thirdPic" class="images" src="http://www.wallpaperist.com/
wallpapers/Cartoons/Donald-duck-furious-800-600.jpg">
This is my jQuery code...
$(document).ready(function() {
$(".images").hide();
});
$(document).ready(function(){
$("#animeButton").click(function(){
$("#firstPic").fadeIn(2000);
//Need assistance in implementing further steps....
});
});