Keep in mind if you are adding this JS to your template file that you’ll need to do this:
jQuery(function($) {
Your jQuery here...
})
The docs say that there’s no need to specifically target your form. So I was able to get this to work (thanks to Joseph G.)
jQuery(function($) {
document.addEventListener( 'wpcf7submit', function( event ) {
$('.submit-success').fadeIn();
setTimeout( function() {
$('.submit-success').fadeOut();
},5000);
}, false );
})
Hope this helps someone!