From 616119053c91d83a1ab7bcfc03b5ec8c8a216098 Mon Sep 17 00:00:00 2001 From: Tyler Barnes Date: Wed, 27 Mar 2019 21:02:50 -0700 Subject: [PATCH] feat: add direction prop to paintDrip --- src/AniLink/PaintDrip.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AniLink/PaintDrip.js b/src/AniLink/PaintDrip.js index 1a9099b..f56150f 100644 --- a/src/AniLink/PaintDrip.js +++ b/src/AniLink/PaintDrip.js @@ -123,6 +123,7 @@ export default class PaintDrip extends Component { entry: removedEntry, paintDrip: removedProp, duration, + direction = "left", ...props } = this.props; const aniLength = duration || 1; @@ -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} >