Question: Im looking for the Jquery version of this code:

```
var tweet = document.getElementById('tweet');
tweet.id = 'tweet_js';
tweet.className = 'hiding';

var slide_timer,
max = tweet.scrollWidth,
slide = function () {
    tweet.scrollLeft += 1;
    if (tweet.scrollLeft < max) {
        slide_timer = setTimeout(slide, 40);
    }
};

tweet.onmouseover = tweet.onmouseout = function (e) {
e = e || window.event;
e = e.type === 'mouseover';
clearTimeout(slide_timer);
tweet.className = e ? '' : 'hiding';
if (e) {
    slide();
} else {
    tweet.scrollLeft = 0;
}
};

```

this code was posted here:
<http://jsfiddle.net/sdleihssirhc/AYYQe/3/> 
as an answer to this question:
[CSS/JQuery powered sideways scrolling text on hover](https://stackoverflow.com/questions/4755593/css-jquery-powered-sideways-scrolling-text-on-hover)

Answer: 
I would suggest you write it ;) Or do you have any problems doing it? And why you want to use jquery for this if your code works already? You dont get any performance advantages or stuff like that.
I would use the code as it is if working fine. Because there is no performance gain or lines of in this code. 

If you want to see the jQuery version of it, here you go.

```
var $tweet = $('#tweet');
$tweet.attr({
    id: 'tweet_js',
    class: 'hiding'
});

var slide_timer,
max = $tweet.outerWidth(),
var slide = function () {
    $tweet.scrollLeft($tweet.scrollLeft() + 1);
    if ($tweet.scrollLeft() < max) {
        slide_timer = setTimeout(slide, 40);
    }
};

$tweet.bind('mouseover mouseout', function (e) {
    var isMouseOver = e.type === 'mouseover';
    clearTimeout(slide_timer);
    tweet.toggleClass('hiding', !isMouseOver);
    if (isMouseOver) {
        slide();
    } else {
        $tweet.scrollLeft(0);
    }
});

```