Forums

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

Home Forums CSS Possible cross-browser solution to blend one DIV / Image into another?

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

    Been searching for days, but no one seems to have a solution for this one so far:

    Here is a test demonstrating what I’m trying to do:
    http://jsfiddle.net/03uzj1of/1/
    (Only displays correctly in Chrome)

    I’m basically overlapping one div onto another, and trying to do a soft gradient blend between them. -webkit-mask-image does the trick just fine for Chrome, but it doesn’t work for Firefox or IE.

    Does a cross-browser solution/replacement for -webkit-mask-image exist? Is there any other way to get this effect? – I’m open to using Javascript / Jquery if needed.

    #193120
    jelmore110
    Participant

    Currently support is extremely limited for mask-image.

    Read here – https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-image

    As an alternative maybe try using a blur filter – https://css-tricks.com/almanac/properties/f/filter/

    #193121
    jelmore110
    Participant

    Note that filters aren’t fully supported either, but it at least gets you closer than mask-image. For now, I wouldn’t recommend using these styles on production sites.

    #193138
    RockinAkin
    Participant

    Right, both filter and mask-image don’t have the cross-browser support I’m hoping for. Perhaps this isn’t possible to do with CSS?

    Perhaps there’s a clever way to achieve this effect with Javascript or JQuery?

    #193149
    shaneisme
    Participant

    It’s really easy in Photoshop.

    #193151
    RockinAkin
    Participant

    Of course, but eventually I’d like to have the images changing in an alternating slideshow manner. The example jfiddle is simplified to show what I’m after.

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