react-fancy-circular-carousel 1.0.6 → 1.0.8
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/FancyCarousel.d.ts +1 -1
- package/FancyCarousel.js +1 -9
- package/README.md +5 -5
- package/package.json +1 -1
- package/assets/christ.webp +0 -0
- package/assets/colosseum.webp +0 -0
- package/assets/greatwall.webp +0 -0
- package/assets/machupicchu.webp +0 -0
- package/assets/petra.webp +0 -0
- package/assets/pyramid.webp +0 -0
- package/assets/tajmahal.webp +0 -0
package/FancyCarousel.d.ts
CHANGED
package/FancyCarousel.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
|
|
3
|
-
import image1 from './assets/greatwall.webp';
|
|
4
|
-
import image2 from './assets/pyramid.webp';
|
|
5
|
-
import image3 from './assets/petra.webp';
|
|
6
|
-
import image4 from './assets/machupicchu.webp';
|
|
7
|
-
import image5 from './assets/christ.webp';
|
|
8
|
-
import image6 from './assets/colosseum.webp';
|
|
9
|
-
import image7 from './assets/tajmahal.webp';
|
|
10
|
-
export const FancyCarousel = ({ images = [image1, image2, image3, image4, image5, image6, image7], setFocusElement = () => { }, offsetAngle = 0, carouselRadius = 400, centralImageRadius = 125, centralImageBoxShadow = '5px 10px 18px #888888', peripheralImageRadius = 75, peripheralImageBoxShadow = '5px 10px 18px #888888', focusElementStyling = {}, border = true, borderWidth = 5, borderHexColor = 'CB786C', autoRotateTime = 0, transitionTime = 1.5, navigationTextSize = 2, navigationButtonRadius = 32.5, navigationButtonBgColor = 'CB786C', navigationButtonColor = 'FFFFFF', navigationButtonStyling = {} }) => {
|
|
2
|
+
export const FancyCarousel = ({ images, setFocusElement = () => { }, offsetAngle = 0, carouselRadius = 400, centralImageRadius = 125, centralImageBoxShadow = '5px 10px 18px #888888', peripheralImageRadius = 75, peripheralImageBoxShadow = '5px 10px 18px #888888', focusElementStyling = {}, border = true, borderWidth = 5, borderHexColor = 'CB786C', autoRotateTime = 0, transitionTime = 1.5, navigationTextSize = 2, navigationButtonRadius = 32.5, navigationButtonBgColor = 'CB786C', navigationButtonColor = 'FFFFFF', navigationButtonStyling = {} }) => {
|
|
11
3
|
const [carousel, setCarousel] = useState({
|
|
12
4
|
carouselOrietation: 0,
|
|
13
5
|
elementOrientation: 0,
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Try the demo [here](https://carousel-demopage.netlify.app).
|
|
|
18
18
|
Include the styles by importing FancyCarousel.css
|
|
19
19
|
|
|
20
20
|
```jsx
|
|
21
|
-
import '
|
|
21
|
+
import 'react-fancy-circular-carousel/FancyCarousel.css';
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Quickstart
|
|
@@ -27,7 +27,7 @@ Try the demo [here](https://carousel-demopage.netlify.app).
|
|
|
27
27
|
|
|
28
28
|
| **Parameter** | **Type** | **Description** |
|
|
29
29
|
|:---|:---|:---|
|
|
30
|
-
| images | String[] | `
|
|
30
|
+
| images | String[] | `mandatory` List of image sources |
|
|
31
31
|
| setFocusElement | Function | `optional` SetState method to get focus element in parent component |
|
|
32
32
|
| offsetAngle | Number | `optional` Angle in degrees to offset the carousel elements |
|
|
33
33
|
| carouselRadius | Number | `optional` Carousel radius in px |
|
|
@@ -55,7 +55,7 @@ Try the demo [here](https://carousel-demopage.netlify.app).
|
|
|
55
55
|
import React from "react";
|
|
56
56
|
|
|
57
57
|
import FancyCarousel from "react-fancy-circular-carousel";
|
|
58
|
-
import '
|
|
58
|
+
import 'react-fancy-circular-carousel/FancyCarousel.css';
|
|
59
59
|
|
|
60
60
|
import image1 from './assets/image1.png';
|
|
61
61
|
import image2 from './assets/image2.png';
|
|
@@ -84,7 +84,7 @@ For eg. if the carousel portrays images of cities, this feature may help you upd
|
|
|
84
84
|
import React, { useState } from "react";
|
|
85
85
|
|
|
86
86
|
import FancyCarousel from "react-fancy-circular-carousel";
|
|
87
|
-
import '
|
|
87
|
+
import 'react-fancy-circular-carousel/FancyCarousel.css';
|
|
88
88
|
|
|
89
89
|
import image1 from './assets/image1.png';
|
|
90
90
|
import image2 from './assets/image2.png';
|
|
@@ -122,7 +122,7 @@ To know more check the official documentation [here](https://legacy.reactjs.org/
|
|
|
122
122
|
import React from "react";
|
|
123
123
|
|
|
124
124
|
import FancyCarousel from "react-fancy-circular-carousel";
|
|
125
|
-
import '
|
|
125
|
+
import 'react-fancy-circular-carousel/FancyCarousel.css';
|
|
126
126
|
|
|
127
127
|
import image1 from './assets/image1.png';
|
|
128
128
|
import image2 from './assets/image2.png';
|
package/package.json
CHANGED
package/assets/christ.webp
DELETED
|
Binary file
|
package/assets/colosseum.webp
DELETED
|
Binary file
|
package/assets/greatwall.webp
DELETED
|
Binary file
|
package/assets/machupicchu.webp
DELETED
|
Binary file
|
package/assets/petra.webp
DELETED
|
Binary file
|
package/assets/pyramid.webp
DELETED
|
Binary file
|
package/assets/tajmahal.webp
DELETED
|
Binary file
|