Skip to content

Commit

Permalink
updated instructions for css loading
Browse files Browse the repository at this point in the history
  • Loading branch information
akiran committed Jan 26, 2024
1 parent 250f078 commit 0a66bd7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Expand Up @@ -28,6 +28,7 @@ npm install slick-carousel
// Import css files
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";
// Copy `slick-carousel/slick/fonts` into your static assets folder and make sure the fonts are loadable by css request
```

or add cdn link in your html
Expand All @@ -46,6 +47,13 @@ or add cdn link in your html
/>
```

or copy `slick-carousel/slick` folder into your static assets folder and link to css

```html
<link rel="stylesheet" type="text/css" href="slick/slick.css" />
<link rel="stylesheet" type="text/css" href="slick/slick-theme.css" />
```

### [PlayGround](https://codesandbox.io/s/ppwkk5l6xx)

### Example
Expand Down Expand Up @@ -111,7 +119,6 @@ open http://localhost:8080

Join our [discord channel](https://discord.gg/z7stRE4Cyb) to discuss react-slick bugs and ask for help


## Contributing

Please see the [contributing guidelines](./CONTRIBUTING.md)

0 comments on commit 0a66bd7

Please sign in to comment.