<!DOCTYPE html> 
<html> 
	<head> 
		<title>The stop Method</title> 
		<script src= 
		"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> 
		</script> 
		
		<!-- jQurey code to show the working of this method -->
		<script> 
			$(document).ready(function() { 
				$("#Farazgar_start").click(function() { 
					$("div").animate({ 
						height: 300 
					}, 1000); 
					$("div").animate({ 
						width: 300 
					}, 1000); 
				}); 
				$("#Farazgar_stop").click(function() { 
					$("div").stop(); 
				}); 
			}); 
		</script> 
		<style> 
			div { 
				background: green; 
				height: 60px; 
				width: 60px; 
			} 
			button { 
				margin-bottom:30px; 
			} 
		</style> 
	</head> 
	<body> 
		<!-- click on this button and animation will start -->
		<button id="Farazgar_start">Start</button> 
		<!-- click on this button and animation will stop -->
		<button id="Farazgar_stop">Stop</button> 
		<div></div> 
	</body> 
</html> 

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.