There are three input type="radio"
, it is necessary that they switch in turn after a certain time (3-5 seconds) in a circle.
<div class="slider"> <input type="radio" name="fruit" value="orange" id="orange" checked="checked"> <input type="radio" name="fruit" value="apple" id="apple"> <input type="radio" name="fruit" value="banana" id="banana"> <label for="apple">apple</label> <label for="orange">orange</label> <label for="banana">banana</label> </div>