Ok so I have a portfolio I am trying to sort. When you click one of the links in the nav it will sort the images based on their assigned ID. I have the JQuery function working, but it won't animate. Also the container holding the images won't animate either, it's like all CSS animations are turned off...I am using bootstrap as well.
I was trying to build this for fun basically, I have run into a snag with the CSS not animating the class. I have starred at this for ages, it is probably simple but I am not seeing it.
CSS:
.category-item{
display: block;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
}
.hide{
display: none;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
}
JQUERY:
$(document).ready(function(){
// Portfolio Sort
$(".categorys").click(function(){
var category = $(this).attr('id');
//alert(category); //test nav
if (category == "featured") {
$(".category-item").addClass("hide");
setTimeout(function(){
$(".category-item").removeClass("hide");
}, 300);
}
})
});
here is the demo JSFiddle (no images, but basically it should animate disappearing and coming back.)