react-fancy-circular-carousel 1.0.3 → 1.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/README.md +5 -5
- package/package.json +1 -1
- package/assets/React.webp +0 -0
- package/assets/preview1.png +0 -0
- package/assets/preview2.gif +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div align="center"><p align="center"><a href="https://www.npmjs.com/package/react-fancy-circular-carousel"><img src="https://github.com/ninadsutrave/react-fancy-circular-carousel/blob/master/
|
|
1
|
+
<div align="center"><p align="center"><a href="https://www.npmjs.com/package/react-fancy-circular-carousel"><img src="https://github.com/ninadsutrave/react-fancy-circular-carousel/blob/master/src/assets/React.webp?raw=true" alt="React Logo - Carousel UI Component" width="140px" /></a></p></div>
|
|
2
2
|
|
|
3
3
|
<h1 align="center">React Circular Carousel Component</h1>
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- Get focus element to add in your own components
|
|
10
10
|
- Smooth, easy to implement, fantastic UI
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Installation
|
|
13
13
|
|
|
14
14
|
$ npm install react-fancy-circular-carousel
|
|
15
15
|
|
|
@@ -91,7 +91,7 @@ import image4 from './assets/image4.png';
|
|
|
91
91
|
|
|
92
92
|
const YourComponent = () => (
|
|
93
93
|
|
|
94
|
-
// the focus element would be the array index of the currently
|
|
94
|
+
// the focus element would be the array index of the image currently at focus
|
|
95
95
|
const [focusElement, setFocusElement] = useState(0);
|
|
96
96
|
|
|
97
97
|
const images = [image1, image2, image3, image4];
|
|
@@ -152,11 +152,11 @@ export default YourComponent;
|
|
|
152
152
|
|
|
153
153
|
With navigators
|
|
154
154
|
|
|
155
|
-

|
|
156
156
|
|
|
157
157
|
With auto rotation
|
|
158
158
|
|
|
159
|
-

|
|
160
160
|
|
|
161
161
|
## Github Repo
|
|
162
162
|
|
package/package.json
CHANGED
package/assets/React.webp
DELETED
|
Binary file
|
package/assets/preview1.png
DELETED
|
Binary file
|
package/assets/preview2.gif
DELETED
|
Binary file
|