2.0.7 • Published 11 months ago

react-magic-card v2.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

react-magic-card

Release Status Minzip Size License: MIT

This is the framer motion components, that support images gallery.

Installation

npm install react-magic-card framer-motion

Usage Guide

import { MagicCircle } from 'react-magic-card'

function MyComponent() {
  const images = [
    {
      src: '/src.jpeg',
      alt: 'alt'
    }
  ]

  return (
    <MagicCircle
      images={images}
      width={100}
      height={100}
      radius={100}
      controller={100}
      start={1}
      delay={100}
    />
  )
}

Common Properties

PropertyMeaning
images (required)array of images and objects containing the src and alt properties
start (required)index number of the array of start scale position
width (required)width of the single image
height (required)height of the single image
controller (required)controller size is add to the size of the component
delaydelay of the animation firing interval
offsetIndexadd an offset to the index of the components and images
reverseIndexorder the change the overlap of zindex default true
loadingloading attribute of img element in html
initialFadeRangerange of fade animation after page loaded
initialTransTimetransition time of fade animation after page loaded
classNameclassName of the component
classImagesclassName of the images
classImageSelectclassName of the select image
classImageUniqueclassName of the index number is assigned to the end
animateobject in the animation property
initialobject in the animation property
transitionobject in the transition property
pickTransitionobject in the transition property
pickPropertyobject in the pick property

MagicCircle Properties

PropertyMeaning
radius (required)radius of the circle
dynamicdynamic or static for rotation the default true

MagicStraight Properties

PropertyMeaning
verticalvertical or horizontal the default true
marginspacing of the between images
selectOffsetXX-axis position
selectOffsetYY-axis position

Animation Object

PropertyMeaning
scalescaling of the images
opacityopacity or transparency of the images
rotateXX-axis rotation of the images
rotateYY-axis rotation of the images
rotateZZ-axis rotation of the images
selectScalescaling of the selected image
selectOpacityopacity of the selected image
selectRotateXX-axis rotation of the selected image
selectRotateYY-axis rotation of the selected image
selectRotateZZ-axis rotation of the selected image

Transition Object

It is Inherits framer motion transition object other than intera.

PickProperty Object

PropertyMeaning
classPickclassName of the pick image
whitewhite or black for background the default true
alphabackground transparency of a number between 0 ~ 1
blurblur intensity of a number between 1 ~ 20 a preferred
scalescale of the pick image
offsetoffset of an appearance position from the center position

License

The MIT License.

2.0.5

11 months ago

2.0.7

11 months ago

2.0.6

11 months ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.1

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.24

2 years ago

0.1.23

2 years ago

0.1.22

2 years ago

0.1.21

2 years ago

0.1.20

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago