$(document).ready(function () {
    $('#list > li').click(function (event) {
        $(this).children("ul").slideToggle();
        event.stopPropagation();
         $(this).children("ul").children("li").children("i").addClass('active');
    });
});.active{
transition: 1s;
transform: rotate(90deg);
}/**
		 * функция получения пользователей, состоящих в n кол-ве групп
		 * @param type $array массив с юзерами
		 * @return type готовый массив с юзерами
		 */
		private function get_array($array){
			$count_group = $this -> filter;
			$new_array = array();
			$array_count = array_count_values( $array );
			foreach ($array_count as $key => $value) {
				if( $value >= $count_group ){
					array_push($new_array, $key);
				}
			}
			return $new_array;
		}