Skip to content

Commit 15bcc58

Browse files
committed
doc: add mention of pattern offsets
1 parent 33d37dc commit 15bcc58

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ See a [live demo](https://yet3.github.io/tailwindcss-bg-patterns/)
1616
- [Installation](#installation)
1717
- [Config](#config)
1818
- [Example usage](#grid)
19+
- [Pattern offsets](#pattern-offsets)
1920
- [Patterns](#patterns)
2021
- [Horizontal lines](#horizontal-lines)
2122
- [Vertical lines](#vertical-lines)
@@ -80,8 +81,14 @@ this code will result in:
8081

8182
<img src="./public/grid.png" alt="Grid pattern" height="200" />
8283

84+
## Pattern offsets
85+
Each pattern can be offset using ``bg-pattern-offset-x`` and ``bg-pattern-offset-y``
86+
87+
Offset also accept arbritary values ``bg-pattern-offset-x-[321px]`` as well as negative values ``-bg-pattern-offset-y-24``
88+
8389
## Patterns
8490

91+
8592
### Horizontal lines
8693

8794
See it live [here](https://yet3.github.io/tailwindcss-bg-patterns#x-lines)

0 commit comments

Comments
 (0)