Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
feat: add direction prop to paintDrip
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Barnes committed Mar 28, 2019
1 parent 0add114 commit 6161190
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AniLink/PaintDrip.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export default class PaintDrip extends Component {
entry: removedEntry,
paintDrip: removedProp,
duration,
direction = "left",
...props
} = this.props;
const aniLength = duration || 1;
Expand All @@ -139,7 +140,7 @@ export default class PaintDrip extends Component {
entry={{
delay: aniDelay,
length: aniLength,
trigger: ({ entry, node }) => this.slideIn(entry, node, "left")
trigger: ({ entry, node }) => this.slideIn(entry, node, direction)
}}
{...props}
>
Expand Down

0 comments on commit 6161190

Please sign in to comment.