You are here

public function SlickUi::getBezier in Slick Carousel 7.2

Maps existing jQuery easing value to equivalent CSS easing methods.

Parameters

string $easing: The name of the human readable easing.

Return value

string A string of unfriendly bezier equivalent for the Slick, or NULL.

1 call to SlickUi::getBezier()
SlickUi::edit_form_submit in slick_ui/plugins/export_ui/SlickUi.class.php
Overrides the edit form submit handler.

File

slick_ui/plugins/export_ui/SlickUi.class.php, line 1086
Contains the CTools export UI integration code.

Class

SlickUi
CTools Export UI class handler for Slick UI.

Code

public function getBezier($easing = NULL) {
  $css_easing = '';
  if ($easing) {
    $easings = $this
      ->getCssEasingOptions(TRUE);
    list(, $css_easing) = array_pad(array_map('trim', explode("|", $easings[$easing], 2)), 2, NULL);
  }
  return $css_easing;
}