1.2.6 • Published 1 year ago

animation-react v1.2.6

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

animation-react

Fade, Text 애니메이션을 React에서 사용할 수 있게 구현한 라이브러리입니다.

Demo

Install

npm install animation-react
# or
yarn add animation-react

Simple Usage

Fade

return (
  <Fade type="left" delay={1} duration={1} isRepeat={false} translate="100px">
    <div>// Your Code</div>
  </Fade>
);

props

type : Fade 유형 ( default : "opacity" ) opacity, top, bottom, left, right

delay : 이벤트 실행 대기 시간 ( default : 1, unit : s )

duration : 이벤트 진행 시간 ( default : 1, unit : s )

isRepeat : 반복 설정 ( default : false )

translate : Fade 이동 거리 ( default : "100px" )

Text

return (
  <Text
    value="Hello! World!"
    type="slide"
    isRepeat={true}
    option={{ translate: "translateX(100px)" }}
  />
);

props

type : Text Animation 유형 ( default : "opacity" ) opacity, underline, slide, drop

delay : 이벤트 실행 대기 시간 ( default : 1, unit : s )

duration : 이벤트 진행 시간 ( default : 1, unit : s )

isRepeat : 반복 설정 ( default : false )

option : 이벤트 옵션 ( default : {} )

option as underLine : {
background: "red",
height: "10px",
}

option as slide : {
translate: "translateX(100px)"
}
1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago