Source

Modified ago
599 bytes Save Open file
import {$id, $class, angle2rad, drawRoundedPolygon, easeInOutQuad} from '../utils' class Index paused: false # Dragging element el: undefined # Dragging animation drag: undefined constructor: (@container, sliders, paused = true) -> @el = @container.querySelector '.drag__icon' @paused = paused do @checkPaused checkPaused: => if @paused @el.classList.add 'drag__icon_paused' else @el.classList.remove 'drag__icon_paused' requestAnimationFrame @checkPaused export default Index