Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Changing Text Colour.

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40738
    BibCra
    Participant

    What method can be used to change the color of text in a paragraph continuously and transition it gracefully?

    #113979
    chrisburton
    Participant

    CSS Animations, I think? Or you could use jQuery.

    #113981

    As Chris said, CSS transitions will work (in modern browsers). But I have to ask why?! I can’t think of a good reason to do this.

    #113982
    BibCra
    Participant

    Thanks guys! Its for a holding page someone has requested.

    #113986
    JohnMotylJr
    Participant

    Are you looking to change the color of all the text as a hole or each letter constantly changing?

    If its the last one, let me know, for some reason when i was bored one day i wrote some code to do just that lol… Dont ask, i was bored!

    #113991
    neerukool
    Participant

    jQuery will help you get to it easily. Run your text through a loop & for every ‘n’ character, you can change color of text.

    You’ll need to assign an initial value to a variable & convert to Hex by using var_name.toString(16); (Converting to Base 16). Incremental or Decremented values through loop will give you that effect.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.