Curvycorners.js is a great library that can add curvycorners to DOM elements. A lot of older browsers don’t support the CSS3 property to add “radius” to make them rounded (amongst other properties).
I thought it might useful to be able to use curvycorners with jQuery. Here is a very simple example of this. Enjoy!
$(function () {
var settings = {
tl: { radius: 10 },
tr: { radius: 10 },
antiAlias: true
}
var divObj = $(".main");
for (var i = 0; i < divObj.length; i++) {
curvyCorners(settings, divObj[i]);
}
});
Currently rated 5.0 by 1 people
- Currently 5/5 Stars.
- 1
- 2
- 3
- 4
- 5