slide image in css code example
Example: create a slider
0/5
const handleSliderRating = () => {
var curVal = document.querySelector('.newpost-rating-slider').value;
var sliderRatingEle = document.querySelector('.slider-rating-field');
sliderRatingEle.textContent = curVal.toString() + "/5";
}