Here's how the toggle should work: http://jsfiddle.net/uVaQ3/
$("#experience-left-details").on('click', '.see-map, .see-gallery', function (event) {
event.preventDefault();
$(".media-container, .swiper-container").toggleClass('hide');
mySwiper.resizeFix(true);
mySwiper.reInit(true);
});
GOAL
Add a fade in or any other effect on this.
TRY 1)
So I've tried to apply the effect on the container: http://jsfiddle.net/x29Xk/
$("#experience-left-details").on('click', '.see-map, .see-gallery', function (event) {
event.preventDefault();
$("#experience-left-details").fadeToggle();
$(".media-container, .swiper-container").toggleClass('hide');
mySwiper.resizeFix(true);
mySwiper.reInit(true);
$("#experience-left-details").fadeToggle();
});
Issue: it blinks, doesn't fade.
TRY 2)
http://jsfiddle.net/7T4w4/24/
$("#experience-left-details").on('click', '.see-map, .see-gallery', function (event) {
event.preventDefault();
$("#experience-left-details").fadeToggle(
function(){
$(".media-container, .swiper-container").toggleClass('hide');
mySwiper.resizeFix(true);
mySwiper.reInit(true);
}
);
$("#experience-left-details").fadeToggle();
});
Fixed the blink, but... Issue: If you click "see map" then resize the window, then click "see gallery" you will see that the gallery is NOT properly rendered.
Any help please? The intended end result is to use a slide effect, not fade, but, if one works, I suppose any other will too.