Skip to content

*.dannyg

an extension of dannyg

Menu
  • Home
  • art
  • inspiration
  • music
  • poetry
  • Recipes
  • writings
Menu

Curvycorners.js with jQuery

Posted on February 26, 2011

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

Technorati Tags: rounded-corners,jquery,javascript

Leave a Reply

You must be logged in to post a comment.

Recent Posts

  • Reading Room
  • Inspirational Movies / TV shows
  • Remove passphrase from PEM file
  • Parallels Multihoming a CentOS Server
  • Forced Failures

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2026 *.dannyg | Design: Newspaperly WordPress Theme