Submit your widget

forkit.js---drag ribbon slide display additional content

Created 5 years ago   Views 12673   downloads 3591    Author hakimel
forkit.js---drag ribbon slide display additional content
View DemoDownload 9.5 KB
52
Share |
Forkit.js---This is an experimental animated ribbon which reveals a curtain of additional content.
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
} );