react-magic-card 0.1.16 → 0.1.17

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.
Files changed (2) hide show
  1. package/README.md +12 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Minzip Size](https://img.shields.io/bundlephobia/minzip/react-magic-card)](https://bundlephobia.com/package/react-magic-card)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6
6
 
7
- This is the framer motion component, that supports illust and photograph galleries.
7
+ This is the framer motion components, that support art and photograph gallery.
8
8
 
9
9
  ## Installation
10
10
 
@@ -15,23 +15,23 @@ npm install react-magic-card framer-motion
15
15
  ## Usage Guide
16
16
 
17
17
  ```tsx
18
- import { MagicCircle } from 'react-magic-card'
18
+ import { MagicCircle } from "react-magic-card";
19
19
 
20
20
  function MyComponent() {
21
21
  const images = [
22
22
  {
23
- src: '/1.jpeg',
24
- alt: '1image'
23
+ src: "/1.jpeg",
24
+ alt: "1image",
25
25
  },
26
26
  {
27
- src: '/2.jpeg',
28
- alt: '2image'
27
+ src: "/2.jpeg",
28
+ alt: "2image",
29
29
  },
30
30
  {
31
- src: '/3.jpeg',
32
- alt: '3image'
33
- }
34
- ]
31
+ src: "/3.jpeg",
32
+ alt: "3image",
33
+ },
34
+ ];
35
35
 
36
36
  return (
37
37
  <MagicCircle
@@ -51,13 +51,13 @@ function MyComponent() {
51
51
  selectScale: 1.6,
52
52
  selectRotateX: 40,
53
53
  selectRotateY: 40,
54
- selectRotateZ: -10
54
+ selectRotateZ: -10,
55
55
  }}
56
56
  transition={{ duration: 0.2 }}
57
57
  pickTransition={{ duration: 0.2 }}
58
58
  pickProperty={{ white: true }}
59
59
  />
60
- )
60
+ );
61
61
  }
62
62
  ```
63
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-magic-card",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "image gallery component with framer motion",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",