Border Radius

The component that animates the CSS properties that control the radius of the corners of a target element.

Overview

Animate the radius for all corners or a specific one for a target element.

The KUTE.js Border Radius component provides support for the CSS3 border-radius property and all corner variations.

The component accepts any measurement unit but the best results in terms of visual presentation are when you use %, em or any other subpixel units.

Even if you don't provide any unit at all, the component will work it out with px.

For a quick reference, here are the properties supported:

Border Radius Properties

Examples

OK let's have a look at some sample tween objects and a quick demo:

KUTE.to('selector1',{borderRadius:'100%'}).start();
KUTE.to('selector2',{borderTopLeftRadius:'100%'}).start();
KUTE.to('selector3',{borderTopRightRadius:'5em'}).start();
KUTE.to('selector4',{borderBottomLeftRadius:50}).start();
KUTE.to('selector5',{borderBottomRightRadius:'20px'}).start();
ALL
TL
TR
BL
BR

Notes