Demo of Jquery Puff UI effects
Apply Puff effects by clicking the buttons
CSS
<style>
.msg{
position: absolute;
FONT-SIZE: 12px;
font-family: Verdana;
padding:10px;
width:350px;
height: 100px;
background-color: #f1f1f1;
}
</style>
HTML
<input type=button id=b1 value='Puff 5000ms'>
<input type=button id=b2 value='Puff fast'>
<input type=button id=b3 value='Puff slow'>
<input type=button id=b4 value='Puff Default'>
<input type=button id=b5 value='Puff Percentage ( 300 )'>
jquery
<script>
$(document).ready(function() {
$('#b1').click(function(){
$( "#d1" ).effect( "puff",5000,function(){
alert('This alert is created by using callback function once the effect is over');
} );
})
/////////
////////////////////
$('#b2').click(function(){
$( "#d1" ).effect( "puff",'fast' );
})
$('#b3').click(function(){
$( "#d1" ).effect( "puff",'slow' );
})
$('#b4').click(function(){
$( "#d1" ).effect( "puff");
})
$('#b5').click(function(){
$( "#d1" ).effect( "puff",{percent:300},'slow');
})
})
</script>