Script Link
When I click on the green div, everything is hidden, but the green div is sluggish, like in, it goes right next to the first green div with a jerky motion. Is it possible to smooth the transit so that it glides and takes its places next to the first green div?
JS:
$('.green').click(function(){ $('.others').fadeOut(); });
CSS
.green{ background:green; padding:10px; margin:10px; } .red{ background:red; padding:10px; margin:10px; } .blue{ background:blue; padding:10px; margin:10px; } .green:hover{ cursor:pointer;} .fade{display:none; opacity:0;} div{ float:left; }
HTML:
<div class="green"></div> <div class="red others"></div> <div class="blue others"></div> <div class="green"></div> <div class="red others"></div> <div class="blue others"></div>
jquery html css transition
AnAspiringCanadian
source share