Socket
Socket
Sign inDemoInstall

framer-motion-carousel

Package Overview
Dependencies
13
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    framer-motion-carousel

A simple framer motion carousel component for React


Version published
Weekly downloads
1.2K
increased by4.82%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.4

add a live demo

Readme

Source

A simple framer-motion-carousel

Basic Usage

import * as React from "react";
import Carousel from "framer-motion-carousel";

const colors = ["#f90", "#ef0", "#e0f"];

const App = () => (
  <div style={{ width: 600, height: 400 }}>
    <Carousel>
      {colors.map((item, i) => (
        <div
          key={i}
          style={{
            width: "100%",
            height: "100%",
            backgroundColor: colors[i],
          }}
        ></div>
      ))}
    </Carousel>
  </div>
);
export default App;

Example

Live Demo

example

Use your arrows

renderArrowLeft: ({handlePrev, activeIndex}) => React.ReactNode
renderArrowRight: ({handleNext, activeIndex}) => React.ReactNode
const App = () => (
  <Carousel renderArrowLeft={({handlePrev, activeIndex}) => <div />}>
    ...
  </Carousel>
)

Todo

  • dots
  • custom dots

Development

yarn install

yarn build

Keywords

FAQs

Last updated on 19 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc