 			drand48()
 			let group = Group(contents: [
 				Shape(form: Rect(w: elementSize.w, h: elementSize.h),
-					// stroke: Stroke(fill: Color(val: 0x1f7a7a)),
 					fill: Color.rgba(r: 0, g: 127, b: 127, a: getOpacity(element))
 				),
 				Text(text: "\(i+1)",

			node.place = data[i]
		}
		return elements
	}

	func sync() {
		for animation in animations {
			animation.stop()
		}
		animations.removeAll()
		if (state % 2 == 0) {
			for (i, node) in elements.enumerated() {
				let element = PeriodicTable.table[i]
				let pos = PeriodicTable.getPos(row: element.row, column: element.column)
				node.placeVar.animate(to: pos, during: 1.0)
			}
        } else {
            grid()
        }
		state += 1
	}

	private func grid() {
		let data = PeriodicTable.gridData()
		for (i, node) in elements.enumerated() {
			node.placeVar.animate(to: data[i], during: 1.0)
		}
	}

	private static func gridData() -> [Transform] {


	private let elements: [Node]

	private var showTable = true

	private var animations: [Animation] = []

