WordPress.org

Forums

IE-friendly design (8 posts)

  1. Bitwize
    Member
    Posted 2 years ago #

    Hi everyone,
    I wasn't sure whether or not to post here or the hacks section, but I figured that this was most appropriate.

    To start off with:
    I designed an Image Portfolio Theme for a website, and one of the key features is that the featured image fades from grayscale to color using a mixture of Javascript and HTML5's canvas tag. This works great, for browsers that support it, but absolutely terrible for older IE versions and for users with javascript disabled.

    This obviously is an issue because it does not extend to the largest user base (some work computers that use older versions of IE can't access it properly either)

    So my question is: Is there any way that I can make this compatible with IE? Bearing in ind the fact that the grayscale effect is achieved strictly through Javascript in order to bypass multiple HTTP requests for separate grayscale images.

    I realize some of the other features like box-shadow and text-shadow may not be visible in older versions, but that's not really the most crucial; the biggest part is the grayscale effect. Even if it was possible to achieve grayscale without the CSS3 fade effect (just going from grayscale to color) would look better than just having the images in color.

    The website for reference is Kaitlyn Payne Photography

    I'd really appreciate any feedback at all.
    Thanks!

  2. Andrew
    Forum moderator
    Posted 2 years ago #

    Try a CSS PIE plugin for general CSS3 appearances http://wordpress.org/extend/plugins/ie-css3-support/

    Why doesn't your grayscale effect work if it's implemented through JavaScript?

  3. Bitwize
    Member
    Posted 2 years ago #

    It uses the canvas tag which is not supported in older versions of IE.

    And I'll look into the CSS PIE; seems like a good start, thanks!

  4. Andrew
    Forum moderator
    Posted 2 years ago #

    Is the grayscale issue that much of a problem? What happens when it doesn't work, do the images just stay as they are without the gray?

  5. Bitwize
    Member
    Posted 2 years ago #

    It's not a huge problem, but it's just a nice effect and would look best if I could keep it -- that's why I'm asking here.

    Otherwise the images all show up in color which isn't terrible, but it's a little bit overwhelming when they are vibrant pictures. The grayscale effect is there to make the image that is currently hovered-over the center of attention.

  6. Bitwize
    Member
    Posted 2 years ago #

    I suppose I could try to find a different grayscale method using javascript that doesn't use canvas, hopefully being backward compatible with IE -- and then using CSS3 for the transition (currently using JQuery for the fade).

    This way older browsers will see gray and then color when hovering over, just may not see the fade-in/fade-out effect.

  7. Andrew
    Forum moderator
    Posted 2 years ago #

    [Going off-topic here, sorry ;)]
    I think your website is really good if only CSS3 aesthetics fail in older browser versions. Users who use old versions of IE are used to seeing no CSS3 and HTML5 effects anyway, it's not like they're expecting (or maybe know about) CSS3 and HTML5 effects.

  8. Bitwize
    Member
    Posted 2 years ago #

    Haha, thank you for the compliment, and quite honestly I hadn't even thought of it that way.
    I just want to try to keep the experience as close to the way it's supposed to be, but you do make a fair point -- thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic