File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,22 @@ An experimental animated ribbon which reveals a curtain of additional content.
4
4
5
5
Curious about how this looks in action? [ Check out the demo page] ( http://lab.hakim.se/forkit-js/ ) .
6
6
7
+ ## Events
8
+
9
+ Open/close events are dispatched from the main ``` .forkit ``` element:
10
+
11
+ ``` javascript
12
+ document .querySelector ( ' .forkit' ).addEventListener ( ' forkit-open' , function () {
13
+ // fired when the curtain is pulled down
14
+ } );
15
+
16
+ document .querySelector ( ' .forkit' ).addEventListener ( ' forkit-close' , function () {
17
+ // fired when the curtain retracts
18
+ } );
19
+ ```
20
+
7
21
# License
8
22
9
23
MIT licensed
10
24
11
- Copyright (C) 2012 Hakim El Hattab, http://hakim.se
25
+ Copyright (C) 2012 Hakim El Hattab, http://hakim.se
You can’t perform that action at this time.
0 commit comments