Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. const Point = ({cx, cy, fill}) => <circle cx={cx} cy={cy} fill={fill} r={5} />;
  2.  
  3. <svg>
  4. <Animation data={{ cx, cy }}>
  5. {({ cx, cy, fill }, animating) => <Point cx={cx} cy={cy} fill={animatiing ? 'red' : 'blue'} />}
  6. </Animation>
  7. <svg />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement