The fact is that I am collecting the values of an API in the form of a list. The UL is outside the value that runs through the API array and within the array are the list elements that I collect. Each value collects me a div and places it horizontally in 3 divs (each corresponds to an LI that has been collected from the API). So my question is; How to make some kind of slider so that I can see the elements of the api and go through them three by three with arrows?
The second value collects the image, the first the URL and the third the title, and thus the list elements are generated. The code would be something like that.
The sketchy scheme would be something like that, with buttons going through three-in-three list items.
<?php
echo '<ul>';
echo '<li class="botonizquierda">';
foreach($data as $valor){
echo '<div>';
echo '<li>';
echo '<img src="'.$valor->API[2]->value.'">
echo '<div><a href="'.$valor->API[1]->value.'">'.$valor->API[3]->value.'</a></div>';
echo '</li>';
echo '</div>;
}
echo '<li class="botonderecha">';
echo '</ul>';
?>