Skip to content

Commit 3cf638a

Browse files
committed
update example
1 parent 10c64e8 commit 3cf638a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

docs/example/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
88
<title>Example „Cards” - Tailwind CSS Intersection Observer Plugin</title>
99
<link href="styles.css" rel="stylesheet">
10-
<script defer src="https://unpkg.com/tailwindcss-intersect@1.x.x/dist/observer.min.js"></script>
10+
<script defer src="https://unpkg.com/tailwindcss-intersect@2.x.x/dist/observer.min.js"></script>
1111
</head>
1212

13-
<body class="bg-white p-8 lg:p-12 lg:text-lg overflow-x-hidden">
14-
<div class="max-w-3xl mx-auto">
13+
<body class="bg-white p-8 lg:p-12 lg:text-lg">
14+
<div class="max-w-3xl mx-auto overflow-clip">
1515

1616
<h1 class="text-3xl mb-2">Example „Image Cards”</h1>
1717
<h2 class="text-xl mb-12 lg:mb-16"><a href="https://github.com/heidkaemper/tailwindcss-intersect">Tailwind CSS Intersection Plugin</a></h2>

docs/example/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/example/tailwind.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
module.exports = {
1+
import intersect from './../../src'
2+
3+
export default {
24
content: [
35
'./docs/example/**/*.html',
46
],
57
theme: {
68
extend: {},
79
},
810
plugins: [
9-
require('../../src/index.js')
11+
intersect
1012
],
1113
}

0 commit comments

Comments
 (0)