The fadeOut() effect presented on the post "How to create Fade Effect in Image Slideshow using JQuery" which I have already posted, makes elements invisible but retains space for them in the document layout.
The hide() method, by contrast, removes the elements from the layouts as if the CSS display property was set to none. When invoked with no arguments, hide() and show() simply hide or show the selected elements immediately. With a duration argument, however, they animate the hiding or showing process. hide() shrinks an element's width and height to 0 at the same time that it reduces the element's opacity to 0. show() reverses the process.
toggle() changes the visibility state of the elements, it is invoked on, if they are hidden, it calls show(), and it they are visible, it calls hide(). As with show() and hide(), you must pass a toggle() to get an animated effect. Passing true to toggle() is the same as calling show() with no arguments. Note also that if you pass two or more function arguments to toggle() it registers event handlers.
Full jQuery code for Show/Hide effect image animation
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
</script>
<style>
.show_hide
{
box-shadow:1px 1px 5px 2px #6DC83C;
position:relative;
width:448px;
height: 336px;
border-radius:19px;
}
.show_hide img
{
border-radius:19px;
position:absolute;
left:0;
top:0;
}
</style>
<script>
$(function(){
$('.show_hide img:gt(0)').hide();
setInterval(function(){$('.show_hide :first-child').hide(3000).next('img').show(3000).end
().appendTo('.show_hide');}, 6000);
});
</script>
<div class="show_hide">
<img src="img1.JPG" />
<img src="img2.JPG" />
<img src="img3.JPG" />
</div>
Preview of Show/Hide effect image animation