Skip to main content

Tap Screen to Transition Image Opacity

Adjusts the opacity of the target object’s image, from the starting value to the ending value within a set period of time, when the screen is tapped.

Input​

NameData TypeDescription
TargetScene ObjectThe object whose image opacity will be adjusted.
FromNumberStarting opacity value.
ToNumberEnding opacity value.
Within SecondsNumberThe time it takes in seconds to complete the transition.
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies