[FEATURE] Add spinning feature for icons
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-69389-AddSpinningFeatureForIcon.rst
1 ===============================================
2 Feature: #69389 - Add spinning feature for icon
3 ===============================================
4
5 Description
6 ===========
7
8 The Icon API has now a support for spinning icons. While registering an icon a new property ``spinning`` is available:
9
10
11 .. code-block:: php
12
13         $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
14         $iconRegistry->registerIcon(
15                 'my-spinning-icon',
16                 \TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
17                 array(
18                         'name' => 'times',
19                         'spinning' => TRUE
20                 )
21         );
22
23
24 Impact
25 ======
26
27 Icons can now be animated.