Last active
March 8, 2017 16:49
-
-
Save glaucia86/949e29345adae3a74131094473322ade to your computer and use it in GitHub Desktop.
Script - App Intro Star Wars: Parte I
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
var width = window.innerWidth; | |
var height = window.innerHeight; | |
var intro = document.getElementByClassName("intro")[0]; | |
intro.style.fontSize = width / 30 + "px"; | |
window.addEventListener("resize", function() { | |
width = canvas.width = window.innerWidth; | |
height = canvas.height = window.innerHeight; | |
intro.style.fontSize = width / 30 + "px"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment