Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldiekmeier authored Mar 15, 2019
1 parent 31b48cf commit 35c812d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ The component takes three props:
</div>
```

The component emits four Vue events:

- `open-start`
- `open-end`
- `close-start`
- `close-end`

```html
<slide-up-down @close-end="console.log('done closing!')" />
```

### Custom `transition-timing-function`

Expand All @@ -66,12 +76,3 @@ If you want to use a different timing function, add some CSS for your `<slide-up
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Soluta omnis velit ab culpa, officia, unde nesciunt temporibus cum reiciendis distinctio.
</slide-up-down>
```


### Listening for Events

The component emits four Vue events, `open-start`, `open-end`, `close-start`, `close-end`:

```html
<slide-up-down @close-end="console.log('done closing!')" />
```

0 comments on commit 35c812d

Please sign in to comment.