Skip to content

Instantly share code, notes, and snippets.

@williwambu
Last active September 3, 2018 07:38
Show Gist options
  • Save williwambu/5c85fe011fe68ac6224ff547f40762fa to your computer and use it in GitHub Desktop.
Save williwambu/5c85fe011fe68ac6224ff547f40762fa to your computer and use it in GitHub Desktop.
const {x, y } = path.getPointAtLength(distance);
const circle = document.querySelector('item-selector');
circle.setAttribute("transform", `translate(${x}, ${y}) rotate(${angle})`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment