My CSS:
.clip-circle {
clip-path: circle(10px at center);
}
My HTML:
<img src="" alt="" class="clip-circle" id="pic" >
How do I edit the px
value of clip-path whenever a button is pressed ?
JS :
function changeSize (button) {
var pic = document.getElementById("pic");
pic.style.WhatDoIWriteHere = "??";
}
Thank you.