Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-countdown-circle-timer

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-countdown-circle-timer

Lightweight React countdown timer component with color and progress animation based on SVG

  • 2.3.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31K
decreased by-8.08%
Maintainers
1
Weekly downloads
 
Created
Source

React Countdown Circle Timer

npm Codecov npm GitHub Workflow Status npm bundle size

React countdown timer component in a circle shape with color and progress animation.

  • Performance optimized with single requestAnimationFrame loop to animate color and progress (no setInterval used)
  • Transition between colors during the countdown
  • Support for linear gradient
  • Fully customizable content in the center of the circle
  • a11y support
  • Built-in and ready-to-use TypeScript type definitions.

Installation

yarn add react-countdown-circle-timer

or

npm install react-countdown-circle-timer

Migrating from v1.x.x to v2.x.x?

There are a few small API changes to consider before switching to v2.x.x. Read Migrate to v2.x.x docs for more info.

Demo

Check the demo on CodeSandbox to get started
Edit stoic-cache-e7cie

Basic usage

import { CountdownCircleTimer } from 'react-countdown-circle-timer'

const UrgeWithPleasureComponent = () => (
  <CountdownCircleTimer
    isPlaying
    duration={10}
    colors={[
      ['#004777', 0.33],
      ['#F7B801', 0.33],
      ['#A30000', 0.33],
    ]}
  >
    {({ remainingTime }) => remainingTime}
  </CountdownCircleTimer>
)

Props

Refer to the list of props

Recipes

Slide down time animation

Check the CodeSandbox below to find out how you can implement it yourself
Edit silly-night-d3s70

Days, hours, minutes, seconds countdown

Check the demo below for one possible solution
Edit musing-davinci-mqssz

Keywords

FAQs

Package last updated on 22 Jul 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc