Prev Demo
jQuery
>
.Animate() - Animate Particular Element
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <input type="button" value="Animate" id="btnAnimate" /> <p id="pAnimate" style="background-color: Green;"> Animate This </p> <script> $("#btnAnimate").click(function () { $("#pAnimate").animate({ width: "800px", fontSize: "60px", height: "500px" }, 500); // instead of 500, we can also keep "slow", "medium" or "fast" }); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output