npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rc-timeline-carousel

v1.0.9

Published

UI Component in the SNS form of Timeline Feed Slider for Developer with REACT

Downloads

5

Readme

react-timeline-carousel


UI Component in the SNS form of Timeline Feed Slider for Developer with REACT

리액트를 사용하는 개발자 분들에게 제공하는 SNS 타임라인 피드 형태의 UI 컴포넌트 입니다.

npm version npm download

Screenshots - "화면갈무리"이에요

제가 IU를 좋아해서.. 팬입니다..

Features - 브라우저 지원은 이렇습니다

  • Supports IE9, IE10, Chrome, Firefox & Safari

Install - 이렇게 설치하세요

npm install --save rc-timeline-carousel

It's sooooooooooo easy? isn't it?

간단합니다. 그렇죠?

Usage - 이렇게 사용하세요

import React from 'react';
import ReactDOM from 'react-dom';
import CarouselTimeline from 'rc-timeline-carousel'
import 'rc-timeline-carousel/src/css/Timeline.css'


ReactDOM.render(
    <CarouselTimeline />
, document.getElementById('root'));

Link to DEMO - 이곳에서 사용해 보세요

Online demo

Parameter

You can add a content or custumize a css design

이 캐러셀에다가 컨텐츠를 넣거나 css 디자인도 가능하답니다.

...

let contents = [{...}];
let config = {...};
let startIdx = 0;

class YourComponent extends Component {
  render() {
    return (
        <CarouselTimeline data={contents} config={config} startIdx={startIdx}/>
    );
  }
}

Data

let contents = [
  {
    mediaType: "image/video" //[image,video]
    , mediaSrc: ""  //image or video url
    , profile: {
      profileImgSrc: "" //profile image url
      , profileName: "" //profile name
      , profileIntro: "" //profile Introduce Comment
    }
    , boardContent: {
      textSrc: "" //board Text Contents
    }
  }
]

config

let config= {
  containerHeight : 400 //400px;
  ,itemHeight : 90 // 90%
  ,fstItemWidth : 700 //focus Item width 700(timelinefeed)
  , anotherItemWidth: 400 //unfocus Item width
  , contentType: 'timeline-feed' // ['timeline-feed', 'media-only', 'custom']
  , eventConfig : {
    mouse : true // for PC [true, false]
    ,touch : true // for Mobile [true, false]
    ,key : true // [true, false]
  }
  ,naviConfig : {
    button: true // [true, false]
    , paging : true //paging [true, false]
    , position: 'outer-bottom' // [inner-top, inner-bottom, outer-top, outer-bottom]
    , both : false // [true, false]
  }
}

startIdx

let startIdx = 1; //start idx 1

Development - 뿅

use create-react-app

npm install create-react-app
create-react-app yourApp
npm start

Example - 예시에요

npm start and then go to http://localhost:3000/

License - 퍼가요~♥

rc-timeline-carousel is released under the MIT license.