Cast variable to an int. jQuery fadeTo will convert any non recognized string (i.e. "fast", "slow") to default to 400ms. Drupal is saving our values as a string to the database, so any value entered is basically being ignored. This gets around the issue for now until a cleaner way is built.
Refactored to be simpler. Add a threshold that shows the logo if the page height is small.