Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 610 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 610 Bytes

GarageDoor

A simple jquery plugin that creates a up/down garage door effect.

Note: Originally written in 2009. The web has changed a lot.

<h1>Simple</h1>
<span id="demo-1">Hello!</span>


<h2>With Events</h2>
<span id="demo-2">I have events!</span>
<span id="demo-2-output"></span>
$(document).ready(function() {
    $('#demo-1').GarageDoor();

    $('#demo-2').GarageDoor({
        onRaise: function () {
            $('#demo-2-output').text('Going Up!')
        },
        onLower: function () {
            $('#demo-2-output').text('Going Down!')
        }
    });
})