(function ($) { $(document).ready(function() { $(document).on('click.card', '.card', function (e) { if ($(this).find('.card-reveal').length) { if ($(e.target).is($('.card-reveal .card-title')) || $(e.target).is($('.card-reveal .card-title i'))) { $(this).find('.card-reveal').velocity({translateY: 0}, {duration: 300, queue: false, easing: 'easeOutQuad'}); } else if ($(e.target).is($('.card .activator')) || $(e.target).is($('.card .activator i')) ) { $(this).find('.card-reveal').velocity({translateY: '-100%'}, {duration: 300, queue: false, easing: 'easeOutQuad'}); } } }); }); }( jQuery ));