Skip to content

Commit 41c3c05

Browse files
LukasDrgoneltonmesquita
authored andcommitted
Add jsDelivr links (#745)
1 parent 0e98c3b commit 41c3c05

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,21 @@ $ npm install animate.css --save
2727
Instead of installing you may use the remote version (hosted by [CDNJS](https://cdnjs.com/libraries/animate.css)):
2828
```html
2929
<head>
30+
<link rel="stylesheet"
31+
href="https://cdn.jsdelivr.net/npm/animate.css@3.5.2/animate.min.css">
32+
<!-- or -->
3033
<link rel="stylesheet"
3134
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
3235
</head>
3336
```
3437
You may [generate a SRI hash](https://www.srihash.org/) of that particular version and then use it to ensure the file's integrity; also you can make anonymous requests to CDN by setting the corresponding [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) attribute:
3538
```html
3639
<head>
40+
<link rel="stylesheet"
41+
href="https://cdn.jsdelivr.net/npm/animate.css@3.5.2/animate.min.css"
42+
integrity="sha384-OHBBOqpYHNsIqQy8hL1U+8OXf9hH6QRxi0+EODezv82DfnZoV7qoHAZDwMwEJvSw"
43+
crossorigin="anonymous">
44+
<!-- or -->
3745
<link rel="stylesheet"
3846
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css"
3947
integrity="sha384-OHBBOqpYHNsIqQy8hL1U+8OXf9hH6QRxi0+EODezv82DfnZoV7qoHAZDwMwEJvSw"

0 commit comments

Comments
 (0)