• Stars
    star
    855
  • Rank 51,198 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 12 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

an animated GitHub ribbon

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.

Events

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

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