Im trying to force a div a have to scroll horizontally but i need it to scroll smoothly and not just jump to where i need it to go.
This is what i am using.
<html>
<img onclick="scroll();" class="slidearrows" src="images/left.png" />
<html/>
<script>
function scroll() {
document.getElementById('scrl-bar').scrollLeft = 1200;
}
<script>
now this is working but it just jumps and doesnt go smoothly. Can anyone please help me make it go smoothly.