Skip to content

Commit

Permalink
update: animation Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
romelperez committed Sep 4, 2020
1 parent e8fda59 commit da9ca84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 4 additions & 6 deletions docs/animation/animation-system.md
Expand Up @@ -47,7 +47,8 @@ it should start `exiting` and completely removed from the DOM when `exited`.
The `Energy` component is an interface used to control the animation flow
in a component. It represents a node in the system.

> This component is not used directly, instead it is used by a HOC (High Order Component).
> This component is not used directly, instead it is used by the HOC
(High Order Component) `withEnergy`.

### Props

Expand Down Expand Up @@ -231,11 +232,8 @@ the components visibility and show/hide them.

```js
class MyComponent extends React.PureComponent () {
constructor () {
super(...arguments);
this.streamRef = React.createRef();
this.containerRef = React.createRef();
}
streamRef = React.createRef();
containerRef = React.createRef();

componentDidMount () {
this.updateChildrenFlow();
Expand Down
6 changes: 4 additions & 2 deletions packages/animation/src/Stream/Stream.component.js
Expand Up @@ -24,8 +24,6 @@ class Component extends React.PureComponent {
duration: PropTypes.oneOfType([
PropTypes.number,
PropTypes.shape({
enter: PropTypes.number,
exit: PropTypes.number,
stagger: PropTypes.number,
delay: PropTypes.number,
offset: PropTypes.number
Expand Down Expand Up @@ -171,6 +169,10 @@ class Component extends React.PureComponent {
}
}

updateChildrenActivation () {
// TODO:
}

enter () {
const flowValue = this.state.flowValue;

Expand Down

0 comments on commit da9ca84

Please sign in to comment.