Snippets: Customize iLightbox Affects/Transition Speeds

add_filter( 'wpex_ilightbox_settings', function( $settings ) {
	if ( isset( $settings['effects'] ) ) {
		$settings['effects']['reposition']      = true;
		$settings['effects']['repositionSpeed'] = 200; // value in milliseconds
		$settings['effects']['switchSpeed']     = 300; // value in milliseconds
		$settings['effects']['loadedFadeSpeed'] = 50;  // value in milliseconds
		$settings['effects']['fadeSpeed']       = 500; // value in milliseconds
	}
	return $settings;
} );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)