Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:27
What would you like to do?
Make kitties appear when someone resizes the window
// Paste this into your console to give it a try!
$(window).resize(function() {
$('<img src="' + (window.innerWidth - 100) + '/' + (window.innerHeight - 100) + '">')
.css({'position': 'absolute', 'top': '50px'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment