Forums

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

Home Forums JavaScript JS text-menu fade effect

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24259
    GZA
    Participant

    I am looking for a script which will fade the text to a different color when hovered over.
    I’ve found a few but none of them where how i wanted it to fade, but if i can find an example i’ll post it.

    #54519
    JRGould
    Member

    have you tried using jquery and the animate() method? off the top of my head the jquery would look something like this:

    Code:
    $(‘a.fade’).hover(function(){
    $(this).animate({color: “#COLOR1”}, 500);
    }
    ,function(){
    $(this).animate({color: “#COLOR2”}, 500);
    });

    http://docs.jquery.com/Effects/animate

    #54521

    You need jQuery color animation pluginfor this to work.

    Why not try this tutorial https://css-tricks.com/color-fading-menu-with-jquery/

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