react-magic-card 0.1.15 → 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 +17 -17
  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
 
@@ -99,7 +99,7 @@ function MyComponent() {
99
99
  | selectOffsetX | X-axis position |
100
100
  | selectOffsetY | Y-axis position |
101
101
 
102
- ## Animation Properties
102
+ ## Animation Object
103
103
 
104
104
  | Property | Meaning |
105
105
  | ------------- | ------------------------------------- |
@@ -114,15 +114,15 @@ function MyComponent() {
114
114
  | selectRotateY | Y-axis rotation of the selected image |
115
115
  | selectRotateZ | Z-axis rotation of the selected image |
116
116
 
117
- ## Transition Properties
117
+ ## Transition Object
118
118
 
119
- It is Inherits framer motion transition properties other than intera.
119
+ It is Inherits framer motion transition object other than intera.
120
120
 
121
- ## Pick Properties
121
+ ## Pick Object
122
122
 
123
123
  | Property | Meaning |
124
124
  | --------- | --------------------------------------------------------- |
125
- | classPick | class name of the pick image |
125
+ | classPick | className of the pick image |
126
126
  | white | white or black for background the default true |
127
127
  | alpha | background transparency of a number between 0 ~ 1 |
128
128
  | blur | blur intensity of a number between 1 ~ 20 a preferred |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-magic-card",
3
- "version": "0.1.15",
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",