Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hakimel/forkit.js

an animated GitHub ribbon
https://github.com/hakimel/forkit.js

Last synced: 7 days ago
JSON representation

an animated GitHub ribbon

Awesome Lists containing this project

README

        

# forkit.js

An experimental animated ribbon which reveals a curtain of additional content.

Curious about how this looks in action? [Check out the demo page](http://lab.hakim.se/forkit-js/).

## Events

Open/close events are dispatched from the main ```.forkit``` element:

```javascript
document.querySelector( '.forkit' ).addEventListener( 'forkit-open', function() {
// fired when the curtain is pulled down
} );

document.querySelector( '.forkit' ).addEventListener( 'forkit-close', function() {
// fired when the curtain retracts
} );
```

# License

MIT licensed

Copyright (C) 2017 Hakim El Hattab, http://hakim.se