You are here

protected function OrbitFormatter::getAnimationOutOptions in ZURB Orbit 8

Array of animations out options.

Return value

array Array of animations options.

1 call to OrbitFormatter::getAnimationOutOptions()
OrbitFormatter::settingsForm in src/Plugin/Field/FieldFormatter/OrbitFormatter.php
Returns a form to configure settings for the formatter.

File

src/Plugin/Field/FieldFormatter/OrbitFormatter.php, line 335

Class

OrbitFormatter
Plugin implementation of the 'Orbit' formatter.

Namespace

Drupal\field_orbit\Plugin\Field\FieldFormatter

Code

protected function getAnimationOutOptions() {
  return [
    "Slide" => [
      "slide-out-down" => $this
        ->t("slide-out-down"),
      "slide-out-left" => $this
        ->t("slide-out-left"),
      "slide-out-up" => $this
        ->t("slide-out-up"),
      "slide-out-right" => $this
        ->t("slide-out-right"),
    ],
    "Fade" => [
      "fade-out" => $this
        ->t("fade-out"),
    ],
    "Hinge" => [
      "hinge-out-from-top" => $this
        ->t("hinge-out-from-top"),
      "hinge-out-from-right" => $this
        ->t("hinge-out-from-right"),
      "hinge-out-from-bottom" => $this
        ->t("hinge-out-from-bottom"),
      "hinge-out-from-left" => $this
        ->t("hinge-out-from-left"),
      "hinge-out-from-middle-x" => $this
        ->t("hinge-out-from-middle-x"),
      "hinge-out-from-middle-y" => $this
        ->t("hinge-out-from-middle-y"),
    ],
    "Scale" => [
      "scale-out-up" => $this
        ->t("scale-out-up"),
      "scale-out-down" => $this
        ->t("scale-out-down"),
    ],
    "Spin" => [
      "spin-out" => $this
        ->t("spin-out"),
      "spin-out-ccw" => $this
        ->t("spin-out-ccw"),
    ],
  ];
}