Demo of Jquery Clip UI effects


Clip 500ms will end with callback function to show alert window.

Refresh this page

Direction
Apply Clip effects by clicking the buttons





CSS


<style>
.msg{ 
position: absolute;
FONT-SIZE: 12px;
font-family: Verdana;
padding:10px;
width:350px;
background-color: #f1f1f1;
width: 480px;
height: 100px;

}
</style>

HTML


<input type=button id=b1 value='Clip 5000ms'>
<input type=button id=b2 value='Clip fast'>
<input type=button id=b3 value='Clip slow'>
<input type=button id=b4 value='Clip Default'>
<input type=button id=b5 value='Clip Horizontal'>
<input type=button id=b6 value='Clip Vertical'>

jquery


<script>
$(document).ready(function() {
$('#b1').click(function(){
$( "#d1" ).effect( "clip",5000,function(){
alert('This alert is created by using callback function once the effect is over');
} );
})
/////////
////////////////////
$('#b2').click(function(){
$( "#d1" ).effect( "clip",'fast' );
})

$('#b3').click(function(){
$( "#d1" ).effect( "clip",'slow' );
})

$('#b4').click(function(){
$( "#d1" ).effect( "clip");
})
////////////////////

$('#b5').click(function(){
$( "#d1" ).effect( "clip",{direction: 'horizontal'},'fast');
})

$('#b6').click(function(){
$( "#d1" ).effect( "clip",{direction: 'vertical'},'slow');
})

})
</script>