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
https://forums.phpfreaks.com/topic/157592-smooth-scrolling-text-issues/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.