This is a simple SASS file that provides a number of useful mixins to achieve CSS3 effects cross-browser. For each rule, the styles are implemented for as many browsers as possible.
DISCLAIMER: this gist is not ready. I forked it to develop a more useful mixin list, but discovered some mixins are behaving other than expected. Needs rework. Use at your own risk!
+border-radius(!radius)
+border-[top|bottom]-[left|right]-radius(!radius)
+border-[top|bottom|left|right]-radius(!radius)
- Firefox
- Safari
- Chrome
- Opera
+box-shadow(!x_offset, !y_offset, !blur, !color)
- Firefox
- Safari
- Chrome
- Opera
- IE (no custom blur amount, no rgba colors)
+vertical-gradient(!from_color, !to_color, !background) !background is optional.
- Set normal background color as a fallback (optional, but needed for Opera)
- Set webkit gradient
- Set Mozilla gradient, use 90deg to make sure it's a vertical gradient
- Set IE gradient using filter
- IE8 now supports CSS grammar, thus needs a vendor prefix for filter
- Set zoom to 1, to force hasLayout = true. Needed for filters to work.
- Firefox
- Safari
- Chrome
- Opera (will only show background color)
- IE
+rotate(!degrees)
- Firefox
- Safari
- Chrome
- Opera
- IE