# ablocks/2.11.1/includes/blocks/lottie-animation/attributes.php

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

- Page: https://pluginprobe.com/plugins/ablocks/2.11.1/code/includes/blocks/lottie-animation/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.11.1/raw/includes/blocks/lottie-animation/attributes.php
- Modified: 2025-12-28T14:24:12+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/2.11.1/code/includes/blocks/lottie-animation/attributes.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}


use ABlocks\Components\ButtonGroup;

$attributes = [
	'block_id' => [
		'type' => 'string',
	],
	'blockVersion' => array(
		'type' => 'number',
		'default' => 2,
	),
	'asset_url' => [
		'type' => 'string',
		'default' => '',
	],
	'custom_url' => [
		'type' => 'string',
		'default' => '',
	],
	'uploaded_json' => [
		'type' => 'object',
		'default' => '',
	],
	'trigger' => [
		'type' => 'string',
		'default' => 'viewport',
	],
	'hoverArea' => [
		'type' => 'string',
		'default' => 'animation',
	],
	'onHoverOut' => [
		'type' => 'string',
		'default' => 'nothing',
	],
	'reverse' => [
		'type' => 'boolean',
		'default' => false,
	],
	'loop' => [
		'type' => 'boolean',
		'default' => false,
	],
	'animationSpeed' => [
		'type' => 'number',
		'default' => 1,
	],
	'timesLoop' => [
		'type' => 'number',
		'default' => '',
	],
];

$attributes = array_merge(
	$attributes,
	ButtonGroup::get_attribute( 'animationSource', false, [
		'value' => 'upload',
	] ),
);

return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );

```
