4
I have a so-called product gallery, with Ivs lined up using {display: block; float: left;}
I made some Divs disappear depending on the menu selected using fadeOut()
and reappear with fadeIn()
.
I created this code to make it happen:
var tipo="all";
$('a.type').click(function(){
$('a.type').removeClass('Bolding');
$(this).addClass('Bolding');
tipo=$(this).attr('id');
$(".imagem").each(function(){
if($(this).hasClass(tipo) || tipo=="all"){
$(this).fadeIn();
}else{
$(this).fadeOut();
}
})
})
When Ivds disappear they gain value {display:none}
disappearing from the page. the problem is that other Ivs simply jump to the future position. And I wanted them to do an animation until the next position fits. Take as an example this plugin, only he gets paid.
I don’t want to use CSS3 for compatibility.
It would be good to put a chunk of code in jsFiddle to facilitate the solution search by other people. I think it is even better because it facilitates the integration of the answer with your code.
– Wakim
http://jsfiddle.net/williammustaffa/Sn46E/ Here it is :D
– William Lima
Show, I’ll take a look.
– Wakim
I found an external plugin, have problem? If not I will adapt it to your code and put a response.
– Wakim
If it is a free plugin, it would make it much easier! No problem! Thank you! D
– William Lima
Okay, I’ll set up here and put.
– Wakim
Can you send me the name of the plugin? D
– William Lima
Oh yes, I was trying to do the source without using Html5 (since you don’t want css3). I found 2 plugins: the Quicksand (http://razorjack.net/quicksand/) and the Shuffle (http://vestride.github.io/Shuffle/) Also has the Isotope (http://isotope.metafizzy.co/) but it is paid for commercial use (cheap)
– Wakim