If i click .img-1 or .img-2 first time it works. bt not in second time without page refresh. I am using Animate.css (zoomIn). Here is the code sample --
html:
See it in jsfiddle http://jsfiddle.net/oxu69Luw/
Script would be like below:
$(function () {
function applyZoomInOutAnim(x) {
$('.back-end,.front-end,.dismiss').removeClass("zoomIn zoomOut").addClass(x + ' animated');
}
$('.img-1,.img-2').click(function () {
applyZoomInOutAnim('zoomIn');
});
$('.dismiss').click(function () {
applyZoomInOutAnim('zoomOut');
});
});