jQuery Selectors: Selecting an animated object

This entry is part 33 of 33 in the series jQuery Selectors

For jQuery, it is possible to select an animated object.

<!doctype html>
<html lang='en'>
    <meta charset='utf-8'>
    <title>animated demo</title>
        div {
            background: yellow;
            border: 1px solid #AAA;
            width: 80px;
            height: 80px;
            margin: 0 5px;
            float: left;

        div.colored {
            background: green;
    <script src='//code.jquery.com/jquery-1.10.2.js'></script>

<button id='run'>Run</button>

<div id='mover'></div>

    $('#run').click(function () {

    function animateIt() {
        $('#mover').slideToggle('slow', animateIt);


Series Navigation<< jQuery Selectors: The greater then gt selector