Skip to content

Commit

Permalink
Merge pull request #7 from marcreichel/feat/animated-cursor
Browse files Browse the repository at this point in the history
✨ Add animated cursor
  • Loading branch information
marcreichel authored Jun 20, 2023
2 parents 5405c4d + d708485 commit 4300622
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 16 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,16 @@ or
<span x-data="{ texts: ['Hello', 'World'] }" x-typewriter.3000ms="texts"></span>
```

### Add a animated cursor

To add a blinking cursor add the `cursor` modifier like so:

```html
<span x-data="{ texts: ['Hello', 'World'] }" x-typewriter.cursor="texts"></span>
```

## 📄 License

Copyright (c) 2022 Marc Reichel and contributors.
Copyright (c) 2023 Marc Reichel and contributors.

Licensed under the MIT license, see [LICENSE](LICENSE) for details.
32 changes: 26 additions & 6 deletions dist/alpine-typewriter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/alpine-typewriter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4300622

Please sign in to comment.