Answer the question
In order to leave comments, you need to log in
So how do you change the radius of an svg circle using input-range?
(Maybe even with Angular?)
Now, if it looks something like this:
codepen.io/Enclave88/pen/GovowP
Answer the question
In order to leave comments, you need to log in
It's that simple:
var circle = document.querySelector("circle");
document.querySelector("input").addEventListener("input", function() {
circle.setAttribute("r", this.value);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question