Socket
Socket
Sign inDemoInstall

react-infinite-ticker

Package Overview
Dependencies
9
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-infinite-ticker

React component that scrolls children infinitely


Version published
Maintainers
1
Weekly downloads
262
decreased by-19.14%

Weekly downloads

Readme

Source

react-infinite-ticker

React component that scrolls children infinitely.

Demo

See here.

Quick start

npm install react-infinite-ticker
import React from "react";
import { VerticalTicker, HorizontalTicker } from "react-infinite-ticker";

function App() {
  return (
    <div>
      <VerticalTicker duration={15000}>
        <div>Put anything you want</div>
        <img src="/images/as/well.png" />
        <h1>All good</h1>
      </VerticalTicker>
      <HorizontalTicker duration={25000}>
        <div>Put anything you want</div>
        <img src="/images/as/well.png" />
        <h1>All good</h1>
      </HorizontalTicker>
    </div>
  );
}

Configuration

Both VerticalTicker and HorizontalTicker take following props.

duration REQUIRED

The number of milliseconds it should take to complete one one full animation iteration.

delay (optional)

The number of milliseconds it should wait before each iterations.

easing (optional)

The rate of the animation's change over time. Accepts the pre-defined values "linear", "ease", "ease-in", "ease-out", and "ease-in-out", or a custom "cubic-bezier" value like "cubic-bezier(0.42, 0, 0.58, 1)". Defaults to "linear". (source)

reverse (optional)

The boolean indicating whether the animation should run forward or backward. Defaults to false

Keywords

FAQs

Last updated on 20 Jun 2022

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