1.3.2 • Published 12 months ago

react-simple-marquee v1.3.2

Weekly downloads
64
License
MIT
Repository
github
Last release
12 months ago

react-simple-marquee

A very simple Marquee component created by using CSS animation and React

Table of Contents

Demo

npm.io

Link to demo: https://react-simple-marquee.surge.sh

Installation

npm i react-simple-marquee --save

Usage

Import Marquee component into your React component

Using React Hooks

import * as React from "react";
import ReactDOM from "react-dom";
import Marquee from "react-simple-marquee";

const App = () => (
  <Marquee
    speed={2} // Speed of the marquee (Optional)
    style={{
      height: 30 // Your own styling (Optional)
    }}
  >
    Your text here
  </Marquee>
);

ReactDOM.render(<App />, document.getElementById("root"));

Using React Class Component

import * as React from "react";
import ReactDOM from "react-dom";
import Marquee from "react-simple-marquee";

class App extends React.Component {
  render() {
    return (
      <Marquee
        speed={2} // Speed of the marquee (Optional)
        style={{
          height: 30 // Your own styling (Optional)
        }}
      >
        Your text here
      </Marquee>
    );
  }
}

ReactDOM.render(<App />, document.getElementById("root"));
1.3.2

12 months ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.0

4 years ago

1.1.2

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago