3
Hello, I would like to know how I can make the code I have (below) make that every time the button "next" or "previous" are clicked, follow the element li with class "music-playing"?
Code: http://codepen.io/anon/pen/vnprg
I want to make the scroll bar focus the LI element with the class. Keep following the element every time the class is changed. Gives current shape, scrolling is out of sync, going up and down.
I don’t quite understand what you want. I visualized it here and it seemed to work right.
– Joao Paulo
@Joaopaulo: He is not following correctly the li with the class I added. .
– gumaro
@From what I understand your problem is with the scrolling that apparently gets messed up. That’s right?
– Edgar Muniz Berlinck
@Exact Edgarmunizberlinck!
– gumaro
I suggest you update your question to better describe the points where the staff was in doubt... I myself, after reading everything, still do not understand what effect you want.
– Rui Pimentel
@Ruipimentel is more understandable now?
– gumaro
It’s more understandable :) but there’s still one thing I don’t understand. I tried to run the Codepen you sent in Chrome (Ubuntu system) and nothing happened; in fact, my console accuses fatal error already loading.
– Rui Pimentel
@Ruipimentel updated the Codepen, try now!
– gumaro