Author: | bansal-io |
---|---|
Views Total: | 1,949 views |
Official Page: | Go to website |
Last Update: | April 24, 2020 |
License: | MIT |
Preview:

Description:
The pattern.css library provides 12 CSS only, seamless patterns for backgrounds of any containers and even text.
How to use it:
1. Install and download the pattern.css with NPM.
# NPM $ npm install pattern.css --save
2. Import the pattern.css.
// ES6 import './pattern.scss';
3. Or load the stylesheet pattern.css in the document.
<!-- From Local --> <link href="dist/pattern.min.css" rel="stylesheet" /> <!-- From CDN --> <link href="https://unpkg.com/pattern.css" rel="stylesheet" />
4. Apply a pattern class of your choice to the background of a container element. All possible size parameters: ‘sm’, ‘md’, ‘lg’, or ‘xl’.
- pattern-checks-SIZE
- pattern-grid-SIZE
- pattern-dots-SIZE
- pattern-cross-dots-SIZE
- pattern-diagonal-lines-SIZE
- pattern-horizontal-lines-SIZE
- pattern-vertical-lines-SIZE
- pattern-diagonal-stripes-SIZE
- pattern-horizontal-stripes-SIZE
- pattern-vertical-stripes-SIZE
- pattern-triangles-SIZE
- pattern-zigzag-SIZE
<body class="pattern-zigzag-xl"> ... </body>
5. The library also supports text background using CSS background-clip property.
<h1 class="pattern-diagonal-lines-sm text-pattern"> CSSSCRIPT.COM </h1>