Catalog npm
PACKAGE EXPLORERView in registry

3d-phone-carousel

npm

A simple, modern look 3D image carousel with IPhone frame, written with React

3dcarouselphonereactsliderslideshow
Versions collected14
Direct dependencies30From release 1.0.52
Last observed20 Oct, 19:36 UTC

README

Current package documentation

A simple, modern look 3D phone carousel, written with React. An animated GIF show of 3D phone carousel

  • Modern simple look
  • Easy to implement
  • Easy to modify
  • CSS based 3D effect
  • Written with React

Installation

Just run npm i 3d-phone-carousel

How to use

After installation, you are able to use PhoneSlider component.

You can set up these props to:

  • items (Required): And array of objects, that should include these variables:
    • image: Image url or reference (recommended image size: 408 * 190)
    • title: The title of slide
    • description: The subtitle of the slide
  • delay (Optional): The amount of time that component slides automatically (in milliseconds). Default value is 3000 (3 seconds)
  • forwardButtonRef (Optional): Define a Custom forward slide move button reference; That should be a React or html component reference (You can use useRef() to define the reference)
  • backwardButtonRef (Optional): Define a Custom backward slide move button reference; That should be a React or html component reference (You can use useRef() to define the reference)

Example of usage

// REMEMBER TO IMPORT BOTH COMPONENT AND ITS STYLE
import "3d-phone-carousel/dist/index.css"
import { PhoneSlider } from '3d-phone-carousel/dist';

function YourParentComponent(props) {
    const slideForwardButton = useRef(null);
    const slideBackgroundButton = useRef(null);

    return <div className="section">

      <div ref={slideForwardButton} className="custom-slide-button"/>

      <PhoneSlider style={{
          margin: "80px 0"
      }}
        backwardButtonRef={slideBackgroundButton}
        forwardButtonRef={slideForwardButton}
        items={[
          {
            description: "Example Description of slide 1",
            title: "Title of image 1",
            image: "/url to your image"
          },
          {
            description: "Example Description of slide 2",
            title: "Title of image 2",
            image: "/url to your image"
          },
          {
            description: "Example Description of slide 3",
            title: "Title of image 3",
            image: "/url to your image"
          }
        ]}/>

      <div ref={slideBackgroundButton} className="custom-slide-button"/>

  </div>
}

Need help or any suggestions?

Email me: mahdi.khansari.mk@gmail.com

Telegram: @geekoptech

Author and licence

This project has been made by Mahdi Khansari under MIT licence

Help me to maintain and improve it :)

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 14

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.52Registry latest25 Feb 202430
1.0.5125 Feb 202430
1.0.525 Feb 202430
1.0.412 Feb 202430
1.0.420 Jan 202430
1.0.3519 Jan 202430
1.0.3419 Jan 202430
1.0.3319 Jan 202430
1.0.3219 Jan 202430
1.0.3119 Jan 202430
1.0.319 Jan 202430
1.0.219 Jan 202430
1.0.119 Jan 202430
1.0.018 Jan 202430

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
mahdi-g01/3d-phone-carousel

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:36 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:41bbf40bd26ba9dea8cea9e65945f20c52b35fd7bae3a71780b7d897135dd627