SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Apr 2003
    Location
    UK
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Graduated image fade

    Hi all.

    I'm using the following code to make an image appear at 50% opacity:

    Code:
    <img src="ball.gif" style="filter:alpha(opacity=50); -moz-opacity:0.5">
    Is there a way I can alter / adjust this so that the left hand side of the image is say 75% opacity and then it fades to 25% on the right hand side?

    Is it at all possible?

    Matt

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IE's transparency filter can handle that - not sure about Moz tho...

    See the following link for a demo of the IE filter

    http://msdn.microsoft.com/workshop/s...r/gradient.htm
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev





Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •