I have a imagebutton, and when clicked, I want another frame to drop down from it smoothly. Pushing the frames after it down like how the list layout should. I want the imagebutton to keep it’s size while still using scale.
I hardcoded a solution but I’m wondering if there is a better way:
local MainFrame = ShopFrame.ScrollingFrame.Frame
local ImageButton = MainFrame.ImageButton
MainFrame:TweenSize(UDim2.new(1, 0, 0.2, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, 0.5, true)
TweenService:Create(ImageButton, tweenInfo, {Size = UDim2.new(1, 0, 1 * .6, 0), Position = UDim2.new(.5, 0, .3, 0)}):Play()
Here is the effect I want to replicate: