mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Сделал немного более симпотную анимацию, что бы Эрик не пугался :)
This commit is contained in:
@@ -7,6 +7,8 @@ import AppInfo from 'components/auth/AppInfo';
|
|||||||
|
|
||||||
import styles from './auth.scss';
|
import styles from './auth.scss';
|
||||||
|
|
||||||
|
const springConfig = [200, 20];
|
||||||
|
|
||||||
class AuthPage extends Component {
|
class AuthPage extends Component {
|
||||||
displayName = 'AuthPage';
|
displayName = 'AuthPage';
|
||||||
|
|
||||||
@@ -30,7 +32,7 @@ class AuthPage extends Component {
|
|||||||
styles={{
|
styles={{
|
||||||
[path]: {
|
[path]: {
|
||||||
children,
|
children,
|
||||||
x: spring(0)
|
x: spring(0, springConfig)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -63,14 +65,14 @@ class AuthPage extends Component {
|
|||||||
willEnter(key, styles) {
|
willEnter(key, styles) {
|
||||||
return {
|
return {
|
||||||
...styles,
|
...styles,
|
||||||
x: spring(100)
|
x: spring(100, springConfig)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
willLeave(key, styles) {
|
willLeave(key, styles) {
|
||||||
return {
|
return {
|
||||||
...styles,
|
...styles,
|
||||||
x: spring(-100)
|
x: spring(-100, springConfig)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user