Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arecvlohe/bs-typing
BuckleScript bindings to the Typed.js library
https://github.com/arecvlohe/bs-typing
animation bucklescript reason reasonml typing
Last synced: 2 months ago
JSON representation
BuckleScript bindings to the Typed.js library
- Host: GitHub
- URL: https://github.com/arecvlohe/bs-typing
- Owner: arecvlohe
- License: mit
- Created: 2019-01-12T18:25:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-12T02:04:04.000Z (about 5 years ago)
- Last Synced: 2024-03-29T04:21:34.420Z (3 months ago)
- Topics: animation, bucklescript, reason, reasonml, typing
- Language: OCaml
- Size: 67.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Lists
- awesome-reasonml - bs-typing - Typed.js bindings (Reason / Libraries and Bindings)
- awesome-reasonml - bs-typing - Typed.js bindings (Reason / Libraries and Bindings)
README
# bs-typing
BuckleScript bindings for the [Typed.js](https://github.com/mattboldt/typed.js/) library.
## Install
First, install dependencies.
```shell
yarn add bs-typing typed.js
```Lastly, add `bs-typing` to `bsconfig.json`.
```json
"bs-dependencies": [ "bs-typing" ]
```## Usage
### `index.html`
```html
```
### `Example.re`
```reasonml
let example =
Typing.make(
"#typing-example",
Typing.options(
~strings=[|
{j|Typing animation in ReasonML with the help of Typed.js|j},
|],
~typeSpeed=50,
~typeDelay=30,
~loop=true,
~loopCount=5.0,
(),
),
);
```Take a look at the [Example.re file](./example/Example.re) for more examples.
## Contribute
Please open an issue or submit a PR if you find something you would like to improve!