@ivanalbizu/astro-webgl-hover 0.0.2 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +4 -4
- package/package.json +3 -3
- package/src/lib/webgl-hover/WebglHover.ts +2 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# astro-webgl-hover
|
|
1
|
+
# @ivanalbizu/astro-webgl-hover
|
|
2
2
|
|
|
3
3
|
WebGL image hover effects for Astro with displacement transitions using Curtains.js and GSAP.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install astro-webgl-hover
|
|
8
|
+
npm install @ivanalbizu/astro-webgl-hover
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```astro
|
|
14
14
|
---
|
|
15
|
-
import { WebglHoverImages, WebglHoverImage } from 'astro-webgl-hover';
|
|
15
|
+
import { WebglHoverImages, WebglHoverImage } from '@ivanalbizu/astro-webgl-hover';
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
<WebglHoverImages>
|
|
@@ -83,7 +83,7 @@ Enable `debug={true}` on `<WebglHoverImages>` to show a control panel where you
|
|
|
83
83
|
You can also import the library directly for more control:
|
|
84
84
|
|
|
85
85
|
```typescript
|
|
86
|
-
import { initWebglHover, WebglHover } from 'astro-webgl-hover';
|
|
86
|
+
import { initWebglHover, WebglHover } from '@ivanalbizu/astro-webgl-hover';
|
|
87
87
|
|
|
88
88
|
// Initialize manually
|
|
89
89
|
const instances = initWebglHover();
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivanalbizu/astro-webgl-hover",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "WebGL image hover effects for Astro with displacement transitions using Curtains.js and GSAP",
|
|
6
|
-
"author": "Ivan
|
|
6
|
+
"author": "Ivan Albizu",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/
|
|
10
|
+
"url": "https://github.com/ivanalbizu/astro-webgl-hover"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
13
|
"astro",
|
|
@@ -6,8 +6,8 @@ import { Plane } from 'curtainsjs';
|
|
|
6
6
|
import gsap from 'gsap';
|
|
7
7
|
import type { WebglHoverOptions } from './config';
|
|
8
8
|
import { degreesToRadians, calculateDisplacementVector } from './utils';
|
|
9
|
-
import vertexShader from '
|
|
10
|
-
import fragmentShader from '
|
|
9
|
+
import vertexShader from '../../shaders/vertex.glsl?raw';
|
|
10
|
+
import fragmentShader from '../../shaders/fragment.glsl?raw';
|
|
11
11
|
|
|
12
12
|
export class WebglHover {
|
|
13
13
|
private webGLCurtain: any;
|