Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Point = ({cx, cy, fill}) => <circle cx={cx} cy={cy} fill={fill} r={5} />;
- <svg>
- <Animation data={{ cx, cy }}>
- {({ cx, cy, fill }, animating) => <Point cx={cx} cy={cy} fill={animatiing ? 'red' : 'blue'} />}
- </Animation>
- <svg />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement