Skip to content

Instantly share code, notes, and snippets.

@JedWatson
Created July 12, 2015 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JedWatson/7020fa22f2d70e3a0fa4 to your computer and use it in GitHub Desktop.
Save JedWatson/7020fa22f2d70e3a0fa4 to your computer and use it in GitHub Desktop.
Declarative Interaction Component
<Flick settings={...}>
{velocityDelta =>
<Spring
currentVelocity={currentVelocity => velocityDelta === 0 ? currentVelocity :
increase(currentVelocity, velocityDelta)
}
endValue={...}>
{currentValues => <div />}
</Spring>
}
</Flick>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment