Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit b17e77f

Browse files
author
Brandon Dail
committed
Add zoomIn animation
1 parent 4e1d8ea commit b17e77f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/components/zoomIn.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// @flow
2+
import { scale3d } from '../utils';
3+
import type { Animation } from '../types';
4+
5+
const zoomIn: Animation = {
6+
from: {
7+
opacity: 0,
8+
transform: scale3d(0.3, 0.3, 0.3),
9+
},
10+
'50%': {
11+
opacity: 1,
12+
},
13+
};
14+
15+
export default zoomIn;

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,6 @@ export slideOutUp from './components/slideOutUp';
9090
export hinge from './components/hinge';
9191
export rollIn from './components/rollIn';
9292
export rollOut from './components/rollOut';
93+
94+
/* Zooming entrances */
95+
export zoomIn from './components/zoomIn';

0 commit comments

Comments
 (0)