react-fancy-circular-carousel 1.0.6 → 1.0.7
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 +1 -1
- 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
|
@@ -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 |
|
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
|