Socket
Socket
Sign inDemoInstall

react-infinite-ticker

Package Overview
Dependencies
8
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
Install size
8.70 kB
Created

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() {
  const [ref, scroll] = useScrollTo();

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

Configuration

speed (optional)

Both VerticalTicker and HorizontalTicker take speed props, which is a number of pixels by which elements are scrolled on each animation frame.

Keywords

FAQs

Last updated on 04 Nov 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