# ghostkit/3.3.3/gutenberg/blocks/alert/transforms.js

Block Animations, Motion &amp; Scroll Effects – Ghost Kit, version 3.3.3. 37 lines.

- Page: https://pluginprobe.com/plugins/ghostkit/3.3.3/code/gutenberg/blocks/alert/transforms.js
- Raw: https://pluginprobe.com/plugins/ghostkit/3.3.3/raw/gutenberg/blocks/alert/transforms.js
- Modified: 2024-02-18T18:40:24+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/ghostkit/3.3.3/code/gutenberg/blocks/alert/transforms.js#L10-L20`.

```javascript
import { createBlock } from '@wordpress/blocks';

export default {
	from: [
		{
			type: 'block',
			blocks: ['ghostkit/counter-box'],
			transform(attrs, innerBlocks) {
				return createBlock(
					'ghostkit/alert',
					{
						iconSize: attrs.numberSize,
						color: attrs.numberColor,
						hoverColor: attrs.hoverNumberColor,
					},
					innerBlocks
				);
			},
		},
		{
			type: 'block',
			blocks: ['ghostkit/icon-box'],
			transform(attrs, innerBlocks) {
				return createBlock(
					'ghostkit/alert',
					{
						iconSize: attrs.iconSize,
						color: attrs.iconColor,
						hoverColor: attrs.hoverIconColor,
					},
					innerBlocks
				);
			},
		},
	],
};

```
