Skip to content

Instantly share code, notes, and snippets.

@jocafa
Created August 1, 2011 16:17
Show Gist options
  • Select an option

  • Save jocafa/1118444 to your computer and use it in GitHub Desktop.

Select an option

Save jocafa/1118444 to your computer and use it in GitHub Desktop.
RingNavigator_radius = 96
RingNavigator_sliceAngle = (PI * 2) / 8
RingNavigator_positionIcon(n)
x = cos(n * RingNavigator_sliceAngle) * RingNavigator_radius
y = sin(n * RingNavigator_sliceAngle) * RingNavigator_radius
x = unit(~~x, px)
y = unit(~~y, px)
-webkit-transform: translate3d(x, y, 0px)
... later ...
&[name="Dashboard"]
RingNavigator_positionIcon(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment