Skip to content

Instantly share code, notes, and snippets.

@emrecamasuvi
emrecamasuvi / Mixin to put items on a circle
Last active February 12, 2018 07:02
Mixin to put items on a circle
/**
* This mixin is forked from talented Hugo Giraudel
* Mixin to put items on a circle
* [1] - Allows children to be absolutely positioned
* [2] - Allows the mixin to be used on a list
* [3] - In case box-sizing: border-box has been enabled
* [4] - Allows any type of direct children to be targeted
// element indexes should be written to the DOM either via backend or JS
$('.circle-container').children().each(function() {