Forums

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

Home Forums JavaScript Sprite Fade Effect

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32425
    CrownOfMars
    Member

    I’m trying to find a simple fade script that would work with a sprite image. Simple example:

    li a { background-image: url(../../images/follow.png);  }
    li.facebook a { background-position: 0 0; }
    li.facebook a:hover { background-position: 0 -35px; }

    The only scripts i seem to find involve inserting at least one image into the element or they are based around changing the opacity of the image which isn’t what i want exactly.

    Anyone know of one?

    Thanks.

    #50107
    jamygolden
    Member

    This isn’t a ‘script’, but it’s a tutorial which fades a sprite

    #50120
    CrownOfMars
    Member

    Thanks for the link mate.

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