You are here

protected function OrbitFormatter::getAnimationInOptions in ZURB Orbit 8

Array of animation in options.

Return value

array Array of animation options.

1 call to OrbitFormatter::getAnimationInOptions()
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 371

Class

OrbitFormatter
Plugin implementation of the 'Orbit' formatter.

Namespace

Drupal\field_orbit\Plugin\Field\FieldFormatter

Code

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