Image Fade On Mouse Over

Discussion in 'HTML & Website Design' started by @SHFAQ, Oct 23, 2008.

  1. #1
    I have a wallpaper gallery based on 4images script.
    To give my gallery more attractive i want when any one move mouse on any thumbnail it show a fade out or fade in effect and when mouse move from thumbnail it come back to original...
    Plz tell me how can i do it with css or java or php ?
     
    @SHFAQ, Oct 23, 2008 IP
  2. jack456

    jack456 Peon

    Messages:
    90
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    jack456, Oct 24, 2008 IP
  3. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    Thanks Jack456, i think your link wil really help.
    Hope some other guys will also give other cool suggestions...
     
    @SHFAQ, Oct 24, 2008 IP
  4. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #4
    With CSS you can set images so that the image transparency changes when the mouse hovers over it. However this will be an instant change say from 100% to 50% opacity or whatever you specify.
    So you can't fade in or fade out slowly with CSS it would be an instant change on hover.

    If you want a fancy fade in or other effects then your best bet is probably to use a JavaScript library, like JQuery and then Google how to add these effects I guess.

    However you should ask yourself whether it's worth adding the JavaScript or not.
     
    wd_2k6, Oct 24, 2008 IP
  5. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    I have already visited jquery but didnt understand how to use it in 4images so if you plz explain it or give any other javascript link it will be nice.
    Thanks
     
    @SHFAQ, Oct 24, 2008 IP