Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fittext.js not working without $(document).ready()? #5

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

Closed
ghost opened this issue Jul 31, 2011 · 3 comments
Closed

Fittext.js not working without $(document).ready()? #5

ghost opened this issue Jul 31, 2011 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 31, 2011

I'm by no means a jQuery expert, but I can't seem to get fittext to work in my current project without $(document).ready(). When I use $(document).ready(), it works with undesired results. For example, if I resize my window in any direction, the targeted text gets rapidly smaller. Any ideas?

FYI, I'm building a responsive/adaptive Wordpress theme based on Roots. I disabled the other jQuery plugins used in Roots by default (Modernizr, Respond) to see if they might be contributing to the issue, but to no avail.

Thanks!

@ghost
Copy link
Author

ghost commented Jul 31, 2011

Scratch that. User error. Thanks for an awesome plugin!

@ghost ghost closed this as completed Jul 31, 2011
@davatron5000
Copy link
Owner

EDIT: just saw your follow comment. good to hear it got solved :) let us know what you use it on!

@TrentWalton
Copy link
Collaborator

Howdy,

I can't be too sure what the conflict is there... It it could be your CSS (try picking apart one of my blog posts...)

Some sample code from a basic implementation I've got going here

body {
background: #233a40;
color: #adc3c7;
font-family:Verdana, sans-serif;
}

header {
text-align: center;
padding: 25% 0;
margin-bottom: 100px;
width: 75%;
margin: 0 auto;
background: rgba(255,255,255,.05);
}

.fit {
color: rgba(0,0,0,.5);
display: block;
}

Tw

On Jul 31, 2011, at 1:26 AM, zumwalt wrote:

I'm by no means a jQuery expert, but I can't seem to get fittext to work in my current project without $(document).ready(). When I use $(document).ready(), it works with undesired results. For example, if I resize my window in any direction, the targeted text gets rapidly smaller. Any ideas?

FYI, I'm building a responsive/adaptive Wordpress theme based on Roots. I disabled the other jQuery plugins used in Roots by default (Modernizr, Respond) to see if they might be contributing to the issue, but to no avail.

Thanks!

Reply to this email directly or view it on GitHub:
#5

This issue was closed.
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

No branches or pull requests

2 participants