If this is what you were looking for, don’t forget to thank me
<!DOCTYPE html>
<html>
<head>
/* Importing Jquery */
<script src="https://code.jquery.com/jquery-3.5.1.js" integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" crossorigin="anonymous"></script>
<style>
/* Change this to change the */
.img-bg {
width: 100px;
height: 100px;
background-color: #17c7e6;
}
.img-animation {
clip-path: circle(100%);
transition: clip-path 1.5s ease-in-out; /* Change the numerical value to the timing */
}
.img-animation.active {
clip-path: circle(0%);
}
</style>
</head>
<body>
<h2>The clip-path property</h2>
<!-- Creating a container for the image -->
<div class="img-bg">
<img class="img-animation"src="https://img.freepik.com/free-vector/abstract- dynamic-pattern-wallpaper-vector_53876-59131.jpg?size=338&ext=jpg" width="100px" height="100px">
</div>
<button id="glory">Change Path</button>
<!--If you don't know much about this, don't change this;-->
<script>
$(document).ready(function(){
let btn_class = "glory"; // Change the value according to the name of you event triggering element
let img_class = "img-animation"; // Change this value with the id of your image
$("." + btn_id).click(function(){
$(".").toggleClass("active");
})
})
</script>
</body>
</html>