(int) codeless_get_mod( 'portfolio_columns', 4 ) ){ $counter = 1; } if( codeless_get_mod( 'portfolio_animation', 'none' ) != 'none' ) $attr[] = 'data-delay="' . ( (int)$default_delay * (int)$counter ) . '"'; if( codeless_get_from_element( 'portfolio_distance', '15' ) != '15' ) $attr[] = 'style="padding:' . codeless_get_from_element( 'portfolio_distance', '15' ) . 'px;"'; return $attr; } /* ----------------------------------------------------------------------------------------- */ /* -------------------------------- Team Items --------------------------------------------- */ /** * Team Item * Animation * @since 1.0.0 */ function codeless_extra_classes_team_item( $classes ) { // Add animation style class if( codeless_get_from_element( 'team_animation', 'none' ) != 'none' ) { $classes[] = 'animate_on_visible'; $classes[] = codeless_get_from_element( 'team_animation' ); } return $classes; } /** * Team Item Attr * Item Animation * @since 1.0.0 */ function codeless_extra_attr_team_item( $attr ) { if( codeless_get_from_element( 'team_animation', 'none' ) != 'none' ) $attr[] = 'data-speed="300"'; $default_delay = 300; $counter = 1; if( codeless_loop_counter() != 0 ) { if( codeless_portfolio_layout() == 'grid' ) $counter = codeless_loop_counter(); if( $counter == 0 ) $counter = codeless_get_from_element( 'team_grid_layout', 4 ); if( ( $counter > codeless_get_from_element( 'team_grid_layout', 4 ) ) ) $counter = $counter % codeless_get_from_element( 'team_grid_layout', 4 ); $default_delay = 100; } if( codeless_get_mod( 'team_animation', 'none' ) != 'none' ) $attr[] = 'data-delay="' . ( $default_delay * $counter ) . '"'; if( codeless_get_from_element( 'team_items_distance', '15' ) ) $attr[] = 'style="padding:' . codeless_get_from_element( 'team_items_distance', '15' ) . 'px;"'; return $attr; } ?>