As a Roblox developer, it is currently too hard not possible to apply tweens to properties using StyleSheets. It would great if this was changed as allowing for gradual transitions between a property change would allow for more interesting styling.
I propose the following API design for style sheet tweens:
-- Sets TweenInfo for one property.
StyleRule:SetTweenInfoForProperty(name: string, value: TweenInfo) -> nil
-- Sets TweenInfo for multiple properties.
StyleRule:SetTweenInfoForProperties(table: { [string]: TweenInfo }) -> nil
-- Gets TweenInfo for one property.
StyleRule:GetTweenInfoForProperty(name: string) -> TweenInfo
-- Gets TweenInfo for multiple properties.
StyleRule:GetTweenInfoForProperties(table: { string }) -> { [string]: TweenInfo }
I know StyleSheet’s are currently in beta and therefore are actively being worked on and are subject to change, but I still wanted to make this feature request nonetheless in case this feature wasn’t being planned for StyleSheets.
I’d also like to say that everything I know about StyleSheets was from figuring things out myself so there could be a chance this feature already exists - but I am 85% sure this is not the case.