- This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hey,
I’m working on a project that needs a slidey menu to fly out from the side (see a CodePen demo). I’m using translate3d in the CSS to do this and attached smooth animation to it but it also needs to work within IE back to 7. Is there some sort of Polyfill/Modernizr to get translate3d working with IE7 and 8 or will it need some margins and js animations to be created?
Many thanks
Modernizr doesn’t polyfill.
It’s a feature detection script that will apply classes to your HTML element depending on whether a browser supports a property / feature.
You can then use that class to target the elements for a fallback.
Eg. If a browser doesn’t support transforms a no-transform
class is added and you can then do
.no-transform #myelement {
fallback CSS
}
Frankly, even thinking of trying to polyfill 3d transforms for IE7/8 would probably be an exercise in futility. I’m sure there must be something but the potential benefits would be far outweighed by the sheer hassle of getting it done.
Still, no harm in looking. :http://jpanelmenu.com/
That said, is this really a “3d” transform if all you are doing is sliding it in from off-canvas?
That’s “2d” isn’t it? In which case it might be a little easier using positioning and overflows etc.