Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make text animation more palatable on mobile #483

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JamesLMilner
Copy link
Contributor

mobilefix

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

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