Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hakimel/forkit.js
- Owner: hakimel
- License: mit
- Created: 2012-07-19T05:40:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-11-25T21:41:11.000Z (almost 2 years ago)
- Last Synced: 2024-10-20T20:18:13.079Z (19 days ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 851
- Watchers: 50
- Forks: 194
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - hakimel/forkit.js - an animated GitHub ribbon (others)
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