Curvycorners.js with jQuery

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]);
    }
});

02.26.2011 19:12 by Danny Gershman | Comments (0) | Permalink

Comments

Add comment


(Will show your Gravatar icon)  


Enter Numbers In Image Above: biuquote
  • Comment
  • Preview
Loading