Is there a way to make text continue animating on the page even when the cursor is not placed on it? I understand the hover function, but how can I ensure the text keeps animating without interruption?
$(document).ready(function () {
$("#start").click(function() {
$("#par").animate({
fontSize: "40px",
left : "952px",
},3000)});
$("#par").hover(function(){
$(this).stop()
});
});
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<button type="button" id="start">click here</button>
<button type="button" id="stop">STOP</button>
<p id="par" style="font-size: 0px;position: absolute;right: 0px;">hello world</p>
<!-- <img src="img/704936.png" width="300" alt=""> -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="jquery.js"></script>
</body>
</html>