Skip to content

Instantly share code, notes, and snippets.

@Pross
Created March 14, 2024 13:27
Show Gist options
  • Save Pross/6cccf8cd7a6f37f884addf538f7178cd to your computer and use it in GitHub Desktop.
Save Pross/6cccf8cd7a6f37f884addf538f7178cd to your computer and use it in GitHub Desktop.
var oldFadeIn = jQuery.fn.fadeIn;
jQuery.fn.fadeIn = function(){
jQuery(this).trigger('fadeInComplete');
return oldFadeIn.apply( this, arguments );
}
jQuery('.foo .fl-success-msg').on('fadeInComplete', function(){
// do some magic here
console.log('bar')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment