diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 50ede589c7f88d7dd108c649b9d029c70d905496..4ef4a173829d80de2f3f152bdd7441a2d03f67b9 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -2869,6 +2869,20 @@ typedef enum { * @since 21 */ NODE_IMAGE_ORIENTATION = 4020, + /** + * @brief Set the animation effect for the image content transformation. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: animation effect type {@link ArkUI_ImageContentTransition}. + * The default value is ARKUI_IDENTITY.\n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: animation effect type {@link ArkUI_ImageContentTransition.\n + * + * @since 21 + */ + NODE_IMAGE_CONTENT_TRANSITION = 4022, /** * @brief Defines the color of the component when it is selected. * This attribute can be set, reset, and obtained as required through APIs. diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 7cef398b2d6b7cbab8dec555464d44799d0898fa..316bf86ccefef07d25916e089b374c78a440bd7c 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -1414,6 +1414,18 @@ typedef enum { ARKUI_ORIENTATION_LEFT_MIRRORED, } ArkUI_ImageRotateOrientation; +/** + * @brief The type of animation effect when the image content changes. + * + * @since 21 + */ +typedef enum { + /** No animation effect. */ + ARKUI_IDENTITY = 0, + /** Fade-in and fade-out effect. */ + ARKUI_OPACITY = 1, +} ArkUI_ImageContentTransition; + /** * @brief Enumerates the blend modes. *