# ablocks/trunk/includes/controls/animation.php

aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder &amp; Animation Builder, version trunk. 39 lines.

- Page: https://pluginprobe.com/plugins/ablocks/trunk/code/includes/controls/animation.php
- Raw: https://pluginprobe.com/plugins/ablocks/trunk/raw/includes/controls/animation.php
- Modified: 2024-09-19T16:28:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ablocks/trunk/code/includes/controls/animation.php#L10-L20`.

```php
<?php
namespace ABlocks\Controls;

use ABlocks\Classes\ControlBaseAbstract;

class Animation extends ControlBaseAbstract {
	public static function get_attribute_default_value( $is_responsive = false ) {
		if ( $is_responsive ) {
			return [
				'animationType' => '',
				'animationTypeTablet' => '',
				'animationTypeMobile' => '',
				'animationDuration' => '',
				'animationDelay' => '',
			];
		}
		return [
			'animationType' => '',
			'animationDuration' => '',
			'animationDelay' => '',
		];
	}

	public static function get_attribute( $attributeName, $isResponsive = false ) {
		return [
			$attributeName => [
				'type' => 'object',
				'default' => self::get_attribute_default_value( $isResponsive ),
			]
		];
	}

	public static function get_css( $attribute_value, $property = '', $device = '' ) {
		return [];
	}


}

```
