Demo of Jquery scale UI effects
Apply Scale effects by clicking the buttons
Apply Scale effects by clicking the buttons
Apply Scale effects by clicking the buttons
Apply Scale 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='Scale 5000ms'>
<input type=button id=b2 value='Scale fast'>
<input type=button id=b3 value='Scale slow'>
<input type=button id=b4 value='Scale Default'>
<input type=button id=b5 value='Scale Right'>
<input type=button id=b6 value='Scale Left'>
<input type=button id=b7 value='Scale Up'>
<input type=button id=b8 value='Scale Down'>
jquery
<script>
$(document).ready(function() {
$('#b1').click(function(){
$( "#d1" ).toggle( "scale",{times:10,distance:200},5000,function(){
alert('This alert is created by using callback function once the effect is over');
} );
})
/////////
////////////////////
$('#b2').click(function(){
$( "#d1" ).toggle( "scale",{times:4,distance:200},'fast' );
})
$('#b3').click(function(){
$( "#d1" ).toggle( "scale",{times:3,distance:200},'slow' );
})
$('#b4').click(function(){
$( "#d1" ).toggle( "scale");
})
$('#b5').click(function(){
$( "#d1" ).toggle( "scale",{direction: 'vertical'});
})
$('#b6').click(function(){
$( "#d1" ).toggle( "scale",{direction: 'horizontal'});
})
$('#b7').click(function(){
$( "#d1" ).toggle( "scale",{direction: 'up'});
})
$('#b8').click(function(){
$( "#d1" ).toggle( "scale",{direction: 'down',times:2});
})
$('#b9').click(function(){
$( "#d1" ).toggle( "scale",{scale: 'content'},5000);
})
$('#b10').click(function(){
$( "#d1" ).toggle( "scale",{scale: 'box'},5000);
})
})
</script>