Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Created July 10, 2019 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyrrahitis/84ca8d194957ed791849b41ac7654b81 to your computer and use it in GitHub Desktop.
Save gdyrrahitis/84ca8d194957ed791849b41ac7654b81 to your computer and use it in GitHub Desktop.
// Chaining functions with jQuery
var banner = $('#banner-message');
banner
.css('background-color', '#eee')
.fadeOut(300)
.fadeIn(250)
.append($('<hr>'))
.append($('<footer>', { text: 'This is the footer' }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment