Skip to content

Conversation

@JamesLMilner
Copy link
Contributor

mobilefix

Aims to fix #482 which made the typing animations overflow on mobile

@JamesLMilner JamesLMilner requested a review from edhager October 29, 2018 11:29
var typing1Elem = document.querySelector('#upAndRunning-typing-1 .typed-text');
var fontSize = window.getComputedStyle(typing1Elem, null).getPropertyValue('font-size');
window.onresize = function() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this function was set to a local variable, it could be called above to set fontSize and would reduce duplication.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Collaborator

@edhager edhager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left one comment that would make the code a little nicer but isn't critical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Getting started animation looks bad on mobile

2 participants