Change font-size of <div> to 100 pixels with duration of "slow". - Javascript jQuery

Javascript examples for jQuery:Animation

Description

Change font-size of <div> to 100 pixels with duration of "slow".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("div").animate({fontSize: '100px'}, "slow");
});// www  .  j a  v  a 2 s.c  o m
</script>
</head>
<body>

<div style="background:#98bf21;height:200px;width:600px;">Hello World</div>

</body>
</html>

Related Tutorials