jQuery: Clip Animation / Effect Plugin

Features

How to use:

$('#background').animate({clip: 'rect(50px, 150px, 150px, 50px)'});

Example:

$('div.clip').toggle( // example with px-values function(){ $(this).animate({clip: 'rect(50px, 600px, 250px, 50px)'}); }, // example with auto-value (same as rect(auto, auto, auto, auto)) function(){ $(this).animate({clip: 'auto'}); }, // example with one em-value function(){ $(this).animate({clip: 'rect(0, 10em, 150px, 0)'}); }, // example with one auto value function(){ $(this).animate({clip: 'rect(0, 300px, auto, 0)'}); } );

Klick me

Lorem ipsum dolor sit amet, consetetur

Download & Bugtracker

Licenses

Back to protofunc