Skip to content

Instantly share code, notes, and snippets.

@hugozap
Last active May 16, 2018 23:39
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 hugozap/7e631fcc5591a684bd60ee485e408954 to your computer and use it in GitHub Desktop.
Save hugozap/7e631fcc5591a684bd60ee485e408954 to your computer and use it in GitHub Desktop.
<SvgLoader id="animated" path="1.svg">
<TransformMotion
selector="#Star"
start={{
x: 0,
y: 0,
angle: 0,
rotateX: centerOfRotationX,
rotateY: centerOfRotationY
}}
target={{
x: this.state.x,
y: this.state.y,
angle: this.state.angle,
rotateX: centerOfRotationX,
rotateY: centerOfRotationY
}}
/>
</SvgLoader>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment