GithubHelp home page GithubHelp logo

sherubthakur / react-horizontal-timeline Goto Github PK

View Code? Open in Web Editor NEW
306.0 10.0 90.0 2.74 MB

[Not maintained] A Timeline component

Home Page: http://sherubthakur.github.io/react-horizontal-timeline

JavaScript 100.00%
react timeline

react-horizontal-timeline's Introduction

React Horizontal Timeline

npm version Build Status Code Climate Dependency Status devDependency Status

A react port of the horizontal time-line developed by CodyHouse. Here is a demo I hope you too are a fan of the elder scrolls.

NOTE

This package is no longer maintained by me. If you find it usefull and would like to be a maintainer for this package please contact me [email protected]

HorizontalTimeline

It will just render a timeline with the dates that you provided and it is up to you what to do when a date is selected. i.e. it will give you the index of the date that was clicked and you can do anything with it.

Property Type Default Description
values (required) array undefined sorted array of dates (format:yyyy-mm-dd)
indexClick (required) function undefined function that takes the index of the array as argument
index (required) number undefined the index of the selected date
getLabel function date.toDateString().substring(4) A function to calculate the label of the event based on the date of the event
minEventPadding number 20 The minimum padding between two event labels
maxEventPadding number 120 The maximum padding between two event labels
linePadding number 100 Padding used at the start and end of the timeline
labelWidth number 85 The width of an individual label
fillingMotion object { stiffness: 150, damping: 25 } Sets the animation style of how filling motion will look
slidingMotion object { stiffness: 150, damping: 25 } Sets the animation style of how sliding motion will look
styles object { background: '#f8f8f8', foreground: '#7b9d6f', outline: '#dfdfdf' } object containing the styles for the timeline currently outline (the color of the boundaries of the timeline and the buttons on it's either side), foreground (the filling color, active color) and background (the background color of your page) colors of the timeline can be changed.
isTouchEnabled boolean true Enable touch events (swipe left, right)
isKeyboardEnabled boolean true Enable keyboard events (up, down, left, right)
isOpenBeginning boolean true Show the beginning of the timeline as open ended
isOpenEnding boolean true Show the ending of the timeline as open ended

This is how it can be used.

import HorizontalTimeline from 'react-horizontal-timeline';

/*
Format: YYYY-MM-DD
Note: Make sure dates are sorted in increasing order
*/
const VALUES = [
    '2008-06-01',
    '2010-06-01',
    '2013-06-01',
    '2015-03-01',
    '2019-01-01',
    '2019-06-17',
    '2019-08-01',
];

export default class App extends React.Component {
  state = { value: 0, previous: 0 };

  render() {
    return (
      <div>
        {/* Bounding box for the Timeline */}
        <div style={{ width: '60%', height: '100px', margin: '0 auto' }}>
          <HorizontalTimeline
            index={this.state.value}
            indexClick={(index) => {
              this.setState({ value: index, previous: this.state.value });
            }}
            values={ VALUES } />
        </div>
        <div className='text-center'>
          {/* any arbitrary component can go here */}    
          {this.state.value}
        </div>
      </div>
    );
  }
}

For more advanced usage take a look at the demos directory.

Running the development version

  • Just clone the repo and do an npm install (or yarn install)
  • Note: You will need to do npm install react react-dom to install peerDependencies as both yarn and npm don't do this.
  • Run npm run start/npm start/yarn start.
  • Then go to localhost:5001/demos/<demo_name>/index.html to see the fruits of your labor.

Here is the information provided by the original author.

An easy to customize, horizontal timeline powered by CSS and jQuery.

Article on CodyHouse

Demo

Terms

react-horizontal-timeline's People

Contributors

blackduck007 avatar claudia-romano avatar cordosvictor avatar dependabot[bot] avatar matejkrajcovic avatar misogl avatar nickman87 avatar rohitrehan avatar rpocaznoi avatar sherubthakur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-horizontal-timeline's Issues

require react-horizontal-timeline in a react component

I did :
npm install react-horizontal-timeline

Then I added var TimeLine = require('react-horizontal-timeline'); in a one of my React Component and I get this error while doing npm start :

Cannot find module '!!./../../node_modules/css-loader/index.js!./timeline.css' from 'myRepository/node_modules/react-horizontal-timeline/dist'

Any idea ?
Thanks

Problem with button-back, button-forward.

After last updates something went wrong. Im using your timeline since version 1.4.0. Before the update buttons back and forward works properly. Right now cursor not-allowed and pointer shows in the wrong moments. For example when I want to scroll to newer dates (button-forward) - I have cursor not-allowed. When Im already on the last dates - button-forward has cursor pointer. The same with button-back :(

Time line not working having error

Am getting bellow error can any one please help me to fix this.
i have installed npm install, webpack, webpack server also am getting this error.
I used npm start

ERROR in multi webpack-dev-server/client?http://localhost:5001 webpack/hot/only-dev-server ./demos/demo-swipeable-views/index.js
Module not found: Error: Can't resolve 'babel-loader' in '/home/shashi/Documents/Torrents/NCD/timeset'
@ multi webpack-dev-server/client?http://localhost:5001 webpack/hot/only-dev-server ./demos/demo-swipeable-views/index.js demo-swipeable-views[2]
ℹ 「wdm」: Failed to compile.

Inline styling difficult to customize

I noticed all the styling is inline on the HTML elements themselves.
Isn't it better to just use a CSS file to put all the styling in.

I'm asking because i'm trying to integrate this component and customising the styling is rather difficult in regular css. It pretty much requires me to either fork this component or use !importants all the time.

Module not found: Error: Can't resolve 'react' in ....

When I clone this project and then after doing npm install and then npm run start, I get the get a bunch of "module not found" errors:

[local]:phil@phil ~/react-horizontal-timeline (git::master) $ npm run start

> [email protected] start /home/phil/react-horizontal-timeline
> node tools/server.js

Listening at localhost:5001
Hash: 97da2af3fa33b583ff96
Version: webpack 3.10.0
Time: 2364ms
                                 Asset     Size  Chunks  Chunk Names
  f4769f9bdb7466be65088239c12046d1.eot  20.1 kB          
448c34a56d699c29117adc64c43affeb.woff2    18 kB          
 fa2772327f55d8198301fdb8bcfc8158.woff  23.4 kB          
  e18bbf611f2a2e43afc071aa2f4e1512.ttf  45.4 kB          
  89889688147bd7575d6327160d64e760.svg   109 kB          
           demo-swipeable-views/all.js   986 kB       0  demo-swipeable-views
       demo-swipeable-views/all.js.map   1.2 MB       0  demo-swipeable-views
  [23] (webpack)/hot/log.js 1.04 kB {0} [built]
  [55] (webpack)/hot/emitter.js 77 bytes {0} [built]
  [89] multi webpack-dev-server/client?http://localhost:5001 webpack/hot/only-dev-server ./demos/demo-swipeable-views/index.js 52 bytes {0} [built]
  [90] (webpack)-dev-server/client?http://localhost:5001 7.95 kB {0} [built]
  [98] ./node_modules/strip-ansi/index.js 161 bytes {0} [built]
 [100] ./node_modules/loglevel/lib/loglevel.js 7.86 kB {0} [built]
 [101] (webpack)-dev-server/client/socket.js 1.05 kB {0} [built]
 [103] (webpack)-dev-server/client/overlay.js 3.73 kB {0} [built]
 [110] (webpack)/hot/only-dev-server.js 2.37 kB {0} [built]
 [111] (webpack)/hot/log-apply-result.js 1.31 kB {0} [built]
 [112] ./demos/demo-swipeable-views/index.js 3.73 kB {0} [built]
 [113] ./node_modules/react-dom/index.js 63 bytes {0} [built]
 [114] ./demos/demo-swipeable-views/HorizontalTimelineContent.js 7.32 kB {0} [built]
 [249] ./demos/resources/content.js 10.4 kB {0} [built]
 [250] ./node_modules/bootstrap/dist/css/bootstrap.min.css 996 bytes {0} [built]
    + 243 hidden modules

ERROR in ./demos/demo-swipeable-views/index.js
Module not found: Error: Can't resolve 'react' in '/home/phil/react-horizontal-timeline/demos/demo-swipeable-views'
 @ ./demos/demo-swipeable-views/index.js 5:13-29
 @ multi webpack-dev-server/client?http://localhost:5001 webpack/hot/only-dev-server ./demos/demo-swipeable-views/index.js

ERROR in ./demos/demo-swipeable-views/HorizontalTimelineConfigurator.jsx
Module not found: Error: Can't resolve 'react' in '/home/phil/react-horizontal-timeline/demos/demo-swipeable-views'
 @ ./demos/demo-swipeable-views/HorizontalTimelineConfigurator.jsx 7:13-29
 @ ./demos/demo-swipeable-views/HorizontalTimelineContent.js
 @ ./demos/demo-swipeable-views/index.js
 @ multi webpack-dev-server/client?http://localhost:5001 webpack/hot/only-dev-server ./demos/demo-swipeable-views/index.js

Any ideas?

Cannot run demos on clone

when I clone this repo and then do

npm install
npm run start

then I get the following errors


ERROR in ./demos/demo-swipeable-views/index.js
Module not found: Error: Can't resolve 'react' in '/Users/rainer/git/react-horizontal-timeline/demos/demo-swipeable-views'
 @ ./demos/demo-swipeable-views/index.js 5:13-29
 @ multi webpack-dev-server/client?http://localhost:5001 webpack/hot/only-dev-server ./demos/demo-swipeable-views/index.js

ERROR in ./demos/demo-swipeable-views/HorizontalTimelineContent.js
Module not found: Error: Can't resolve 'react' in '/Users/rainer/git/react-horizontal-timeline/demos/demo-swipeable-views'
 @ ./demos/demo-swipeable-views/HorizontalTimelineContent.js 11:13-29
 @ ./demos/demo-swipeable-views/index.js
 @ multi webpack-dev-server/client?http://localhost:5001 webpack/hot/only-dev-server ./demos/demo-swipeable-views/index.js
...

Format dates (Feature request)

Would it be possible to format dates displayed on the timeline?
Its default format is MMMM-DD-YYYY, and I would like to use MMMM-YYYY format.

Bug on Safari

Hello!

First, thanks for this amazing feature to display an horizontal time line in react.
But, I have a small bug only in Safari Browser:
Screenshot 2020-02-05 at 15 35 44
The last timeline item renders above right arrow.
This only happens when I open the page for the first time.

But If I refresh the page.. :
Screenshot 2020-02-05 at 15 35 57

This only happens in Safari, so it is an bug hard to resolve.
Any idea how could resolve this problem?

Thanks,
Pedro Ferreira

keyboard navigation not working

The keyboard navigation doesn't seem to be working, not even on your demo page (tested with the latest Firefox and Chrome).

Performance Degraded

Hey,

I want to use this library but if we extend date items to 300-400, library performance is degraded too much

Able to remove button-back and button-forward

Hi there, love the library and great UX. I just wanted to remove the ability to scroll through the dates and dislay them all in a simple line but I can't figure out how to remove the forward and back buttons if that's possible? TIA

Customize TImeline CSS

Hi,
I wanted to modify Timeline css ,where should i change Css code.
When i inspect i got li code and tried to change width but in source am not getting css classes
Example :
li id="timeline-dot-2018-01-23" class="present dot-label" data-radium="true" style="position: absolute; bottom: 0px; text-align: center; padding-bottom: 15px; left: 57.5px; cursor: pointer;

width: 85px;

"Jan 23 2018< data-radium="true" style="position: absolute; bottom: -5px; height: 12px; width: 12px; border-radius: 50%; transition: background-color 0.3s ease 0s, border-color 0.3s ease 0s; left: 36.5px; background-color: rgb(26, 121, 173); border: 2px solid rgb(26, 121, 173);"></>li

Non-clickable dates

I'm using this solely for a list of dates and labels that users can scroll through, it's not changing pages with a date selection or anything. So it'd be nice if there was an not clickable option for the dates so that the pointer doesn't appear and dots don't change color when highlighted. (the left/right scroll arrows still need to be clickable of course)

Cannot read property 'map' of undefined - "HorizontalTimelineContent"

Hi @sherubthakur :)

Firstly, thanks for the great package - I'm looking forward to using it in my project :) I was trying to use one of the demos which made use of the content "feature" - it seems like it was used for the demo page that you had listed. I tried to "simplify" it, and came up with the code seen below:

import React, { Component } from 'react'; 

import HorizontalTimelineContent from 'react-horizontal-timeline';

import './TimeLine.css';

const game = [
  {
    date: '01/01/1994',
    avatarURL: 'https://upload.wikimedia.org/wikipedia/en/8/89/Elder_Scrolls_Arena_Cover.jpg',
    photo: './the_elder_scrolls_1_arena_wallpaper_by_thejackmoriarty-d8mlpzc.png',
    title: 'The Elder Scrolls: 1',
    subtitle: 'Arena',
    content: 'Boo1'
  },
  {
    date: '08/31/1996',
    avatarURL: 'https://upload.wikimedia.org/wikipedia/en/a/a4/Daggerfall_Cover_art.gif',
    photo: 'https://images6.alphacoders.com/599/599052.jpg',
    title: 'The Elder Scrolls: 2',
    subtitle: 'Daggerfall',
    content: 'Boo2'
  }];

class TimeLine extends Component {
	constructor(props) {
	    super(props);
	    this.state = { value: 0, previous: 0, data: undefined};
  	}

	componentWillMount() {
		let data;

	    data = game.map((game, index) => {
		      return ({
		        date: game.date,
		        component: (
		          <div className='container' key={index}>
		            <h1>{ `The Elder Scrolls ${index + 1}:`}</h1>
		            <h2>{ game.subtitle }</h2>
		            <hr />
		            <p>{ game.content}</p>
		            <hr />
		          </div>
		        )
		      });//end return
		 });//end Data

	    this.setState({ data });
  	}

  	render () {
		return (
			<div className="TimeLine">

				{console.log(this.state.data)}
				<HorizontalTimelineContent content={this.state.data} />

        	</div>
		)//end return
	}//end render

}//end TimeLine

export default TimeLine;

However, when I try run it, I get the following error:
TypeError: Cannot read property 'map' of undefined
t.value
...node_modules/react-horizontal-timeline/dist/react-horizontal-timeline.js:1_

In order to make sure that I was sending through the correct data to the module, I used the "console.log" command seen in the code above. As per the screenshot below, it does show in the console that there is data present in the object:
image

Can you please let me know what I am doing wrong? Is the data perhaps not in the correct format? I saw somewhere in one of the closed off issues, that the "index" has to be passed through - I tried including it, but couldn't seem to get past this error.

Please let me know if you need any further information in order to assist.

Thanks.

Timeline is invisible

I'm trying to simply get this component to render, but all I can see are the arrow endpoints. Little help?

            <HorizontalTimeline
              index={this.state.index}
              values={this.state.values}
              indexClick={(index) => {
                this.setState({ index });
              }}>
           </HorizontalTimeline>

My values array is defined like this:
values: ['2000-01-01','2001-01-01','2002-01-01']

How to integrate with CoreUI

Trying to integrate with COREUI reactjs am getting many errors how do i merge both code can any one please help me.

Non consecutive dates bug

Timeline bugs when two non consecutive dates are passed. For exemple, passing the array below through the values prop makes the timeline render the following:

const values = [ '2020-05-19', '2020-05-18', '2020-05-17', '2020-05-16', '2020-05-15', '2020-05-14', '2020-05-13', '2020-05-12', '2020-05-09', ];
image

Problem on install

warning react-horizontal-timeline > uglifyjs-webpack-plugin > [email protected]: support for ECMAScript is superseded by uglify-js as of v3.13.0 warning react-horizontal-timeline > babel-plugin-transform-runtime > babel-runtime > [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. [2/4] Fetching packages... [3/4] Linking dependencies... warning "@emotion/react > @emotion/[email protected]" has unmet peer dependency "@babel/core@^7.0.0". warning "@emotion/react > @emotion/babel-plugin > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0". warning " > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0". warning " > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0". warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0". warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0". warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0". warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0". warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0". warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0". warning " > [email protected]" has incorrect peer dependency "react@^17.0.2". warning " > [email protected]" has incorrect peer dependency "react@^16.14.0". warning " > [email protected]" has incorrect peer dependency "react-dom@^16.14.0". warning " > [email protected]" has incorrect peer dependency "react@^15.0.0 || ^16.12.0". warning " > [email protected]" has unmet peer dependency "@mui/system@^5.0.0". warning " > [email protected]" has unmet peer dependency "react-is@>= 16.8.0". warning "react-horizontal-timeline > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0". warning "react-horizontal-timeline > [email protected]" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0". warning "react-horizontal-timeline > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0". warning "react-horizontal-timeline > [email protected]" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0". warning "react-horizontal-timeline > [email protected]" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0". warning "react-horizontal-timeline > [email protected]" has incorrect peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0". warning "react-horizontal-timeline > [email protected]" has incorrect peer dependency "react@^15.3.0 || ^16.0.0". warning " > [email protected]" has incorrect peer dependency "react@^16.2.0". warning " > [email protected]" has incorrect peer dependency "react-dom@^16.2.0". error An unexpected error occurred: "EPERM: operation not permitted, unlink 'C:\\Users\\Unity-Newsoft\\Treatment-Planner\\Frontend\\node_modules\\esbuild-windows-64\\esbuild.exe'".

Doesn't render when in a container with display:none

I'm using this as a timeline for projects. I'm creating a new application where there are three pages, and each page has several projects. I need all the pages rendered, but only one to show at a time, so I create all three and hide all but the one that should be shown. In the projects rendered o the page that's not hidden, the timelines appear fine, but when I move to a different page, there's just a '0' in place of the timeline

Dates are placed one on one in firefox browser

Screenshot from 2021-05-17 23-45-55
Screenshot from 2021-05-18 00-06-24

Came across couple of issues and they seem not related. Can guarantee None of these errors occur on Google Chrome though. Only occurs on Firefox. Can guarantee that none of the root styles cause this because I tried this on a plain react website with no styling added and it still had the issue.

Can't resolve 'react'

Hi all I'm new with REACT.Js and I was in the preliminary phase of putting the website online.

But after my npm start command I saw the error message on my localhost with the next Description:

../node_modules/create-react-context/lib/index.js
Module not found: Can't resolve 'react' in '/Users/frankthijssen/node_modules/create-react-context/lib'

How to solve this one?

After typing in my Terminal NPM TEST is get the next result:

> Error: `fsevents` unavailable (this watcher can only be used on Darwin)
>     at new FSEventsWatcher (/Users/frankthijssen/reign/node_modules/sane/src/fsevents_watcher.js:41:11)
>     at createWatcher (/Users/frankthijssen/reign/node_modules/jest-haste-map/build/index.js:780:23)
>     at Array.map (<anonymous>)
>     at HasteMap._watch (/Users/frankthijssen/reign/node_modules/jest-haste-map/build/index.js:936:44)
>     at /Users/frankthijssen/reign/node_modules/jest-haste-map/build/index.js:355:23
>     at processTicksAndRejections (internal/process/task_queues.js:89:5)
> npm ERR! Test failed.  See above for more details

Is there an easy way to pull just the year from the date.

Ideally I just want the date to be run through .getFullYear() so that I'm only returning the year (yyyy) something happened versus the full date (mm/dd/yyyy).

I'm thinking I will need to adjust the component from within the node modules. In which case I'll just pull down the cloned copy and modify the src.

Just figured i'd check first.

PS Nice work.

Best,
Shawn

Navigation keyboard and consecutive days bug

Hi! thanks for this plugin, as i saw in original plugin, they use keyboard to navigate, and in yours it doesn't work. And if i use for example 20/02/2016 and 21/02/2016, the timeline goes crazy, both in yours and codyhouse plugin. Did you know how to solve this?
Sorry for my english.

Missing schemas folder and containing WebpackOptions.json file

Receiving an error on initial script run: yarn start

yarn run v1.9.4
$ node tools/server.js
C:\GitHub\react-horizontal-timeline\node_modules\webpack\lib\webpack.js:31
throw new WebpackOptionsValidationError(webpackOptionsValidationErrors);
^

WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

Symptom:
File: webpack.js
Line: 14
Code:
const webpackOptionsSchema = require("../schemas/WebpackOptions.json");

No directory exists at ../schemas/ in the current repository (sibling to src). Please add this missing json file.

Date is stuck in overflow: hidden

Screen Shot 2020-04-27 at 17 52 28

.events-wrapper isn't letting me show these dates in full because of the overflow. Anyone know how to fix it?

Great package, thanks!

demo images not appearing

I've just cloned the repo to test it out. I see that there are image props, but no image is showing.

Same Date Different Content

Hello,

is there fast implementation to make same date appear once in timeline and make it appear on content section as Content1, Content2 etc.

Thanks

Require react-icon-base problem in v1.3.0

In version 1.3.0 the build output file dist/react-horizontal-timeline.js contains require("react-icon-base"). This reference cannot be resolved as it is not in package dependencies.

I'm using yarn v1.1.0 which does not install indirect dependency react-icon-base into the root node_modules directory but under react-icons/node_modules and webpack is unable to resolve it in that case.

Please fix the build configuration.

Horizontal timeline returning '0'

<div style={{ width: '60%', height: '100px', margin: '0 auto' }}> <HorizontalTimeline index={this.state.value} indexClick={(index) => { this.setState({ value: index, previous: this.state.value }); }} values={VALUES} /> </div>

image

Cannot understand why is this happening. States are set correct and everything is defined also. VALUES also contain date strings.

Dates are off by one on the timeline

When passing in an array from a redux state, the dates that are displayed in the timeline appear to be off by one.

Screen Shot 2020-07-29 at 2 57 04 PM

On the right you can see that I've logged the dates we're passing in, and on the left you can see the timeline is displaying dates that are behind by one day.

Problem on install

I have npm install the package and visual studio shows no error. But the brower showed that
image

I have tried to reinstall all seperate packages like react-horizontal-timeline, element-resize-event, react-dimensions. None of them works. Here's my current code.

image
image
image

Hope you guys could help me with this. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.