Jump to content

Smooth Scrolling Text Issues


affc

Recommended Posts

Hello,

 

I have a script that scrolls my text using javascript and it looks great. The only issue I am having is when I resize the window the text I have scrolling doesn't wrap along with the Window, it stays the same width until I press refresh. Why is this and can you get around it or is this why the text is smooth because you cant change the width of this type of text effect,

 

thanx

Link to comment
Share on other sites

I'm guessing when you set your variables for the window height and width, you didn't change them when you resize your browser. Since there is no way to tell if the user's browser is resized, I would set a setInterval() function that executes per half a second to re-write those variables with the height and width of the browser.

Link to comment
Share on other sites

Just curious, how is this done? I have never heard of this type of variable before? Is it simple to refresh the variables or do i have to change my whole scroll script, if its not simple dont worry about it, cheers

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.