Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# [<img src="https://splitting.js.org/splitting.gif" alt="Splitting.js" style="max-width: 100%; height:auto" />](https://splitting.js.org)

### Options

- `rtl` (boolean, default: `false`)
When `true`, **each word** is left intact in a *single* `.char` span—rather than splitting into letters—so that Persian/Arabic ligatures remain connected.

#### Usage

```js
Splitting({
target: ".my-text",
by: "words chars",
whitespace: false,
rtl: true // ← enable full-word spans for RTL scripts
});

### _CSS Vars for split words, chars & more!_

![The current build status based on whether tests are passing](https://api.travis-ci.org/shshaw/Splitting.svg?branch=1.0.0)
Expand Down
Loading