Created
November 24, 2016 00:20
-
-
Save manegame/5acff9d38968a87712a3c5d5eb8899f7 to your computer and use it in GitHub Desktop.
Resize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
var everything = document.getElementById('everything'); | |
$(window) | |
.on('resize', function(){ | |
var scale = window.innerHeight / 750; | |
everything.style.transform = 'scale(' + scale + ')'; | |
}) | |
.trigger('resize'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment