Jump to content

Fading text


KDragon

Recommended Posts

I've got this code that does pretty much what I would expect it to do, which is print out the same text over and over, darkening each line of text from white to black. Now that I got that to work I was going to move on to building an algorithm to fade the same line of text from white to black. But i realize that part of my algorithm would probably be printing out the text at the color it's at and then replace it with the next darkest shade of text. So before I go about writing this next step of my code, i would just like to know if it's even possible to do this with purely PHP and no help from any javascript etc. Basically, is it possible to echo something out to the page for some period of time, remove it and replace with something else??
Link to comment
https://forums.phpfreaks.com/topic/8237-fading-text/
Share on other sites

[!--quoteo(post=367873:date=Apr 24 2006, 08:06 AM:name=KDragon)--][div class=\'quotetop\']QUOTE(KDragon @ Apr 24 2006, 08:06 AM) [snapback]367873[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I've got this code that does pretty much what I would expect it to do, which is print out the same text over and over, darkening each line of text from white to black. Now that I got that to work I was going to move on to building an algorithm to fade the same line of text from white to black. But i realize that part of my algorithm would probably be printing out the text at the color it's at and then replace it with the next darkest shade of text. So before I go about writing this next step of my code, i would just like to know if it's even possible to do this with purely PHP and no help from any javascript etc. Basically, is it possible to echo something out to the page for some period of time, remove it and replace with something else??
[/quote]

yes, if you wanted a page reload in between each shade of the colour fade....very unlikely.

otherwise, nope. your only and best way is via javascript.
Link to comment
https://forums.phpfreaks.com/topic/8237-fading-text/#findComment-30017
Share on other sites

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.