react-router-transition

WebJar for react-router-transition

Лицензия

Лицензия

MIT
Категории

Категории

React Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

react-router-transition
Последняя версия

Последняя версия

1.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

react-router-transition
WebJar for react-router-transition
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/maisano/react-router-transition

Скачать react-router-transition

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/react-router-transition/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>react-router-transition</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/react-router-transition/
implementation 'org.webjars.npm:react-router-transition:1.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/react-router-transition/
implementation ("org.webjars.npm:react-router-transition:1.1.1")
'org.webjars.npm:react-router-transition:jar:1.1.1'
<dependency org="org.webjars.npm" name="react-router-transition" rev="1.1.1">
  <artifact name="react-router-transition" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='react-router-transition', version='1.1.1')
)
libraryDependencies += "org.webjars.npm" % "react-router-transition" % "1.1.1"
[org.webjars.npm/react-router-transition "1.1.1"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.webjars.npm : react-dom jar [15.6.1,16)
org.webjars.npm : react-motion jar [0.5.0,0.6)
org.webjars.npm : react jar [15.6.1,16)
org.webjars.npm : prop-types jar [15.5.10,16)
org.webjars.npm : react-router-dom jar [4.1.1,5)

Модули Проекта

Данный проект не имеет модулей.

React Router Transition

Painless transitions for React Router, powered by React Motion. Example site.

Requirements

To use the latest version of this package (2.x), you'll need to use a version of React compatible with hooks, as well as version 5.x of react-router-dom.

Installation

npm install --save react-router-transition react-router-dom

Example Usage

import { BrowserRouter as Router, Route } from 'react-router-dom';
import { AnimatedSwitch } from 'react-router-transition';

export default () => (
  <Router>
    <AnimatedSwitch
      atEnter={{ opacity: 0 }}
      atLeave={{ opacity: 0 }}
      atActive={{ opacity: 1 }}
      className="switch-wrapper"
    >
      <Route exact path="/" component={Home} />
      <Route path="/about/" component={About}/>
      <Route path="/etc/" component={Etc}/>
    </AnimatedSwitch>
  </Router>
)
.switch-wrapper {
  position: relative;
}

.switch-wrapper > div {
  position: absolute;
}

Docs

Limitations

This library has some obvious limitations, the most marked of which are:

  • no staggering or sequencing of animations
  • no durations or timing functions

Версии библиотеки

Версия
1.1.1