local J=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local h=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local g=require(J.Shared.Quark)local r=g.New return function(J)local C=UDim2.fromOffset(0,50)local d=UDim2.new(.15,0,0,50)local L=TweenInfo.new(1,Enum.EasingStyle.Bounce)local j=g.Animations.Tween(C,g.State(d),L);(r("\084\101\120\116\076\097\098\101\108"))({Text="\067\117\115\116\111\109 \081\117\097\114\107 \084\119\101\101\110\115 \119\105\108\108 \117\112\100\097\116\101 \119\104\101\110 \116\104\101 \116\097\114\103\101\116 \115\116\097\116\101 \117\112\100\097\116\101\115\046 \040\084\104\101\121 \117\115\101 \084\119\101\101\110\073\110\102\111\041",TextColor3=Color3.new(1,1,1),Size=UDim2.new(1,0,0,20);BackgroundTransparency=.5;BackgroundColor3=Color3.new(),TextXAlignment="\076\101\102\116";Parent=J});(r("\084\101\120\116\066\117\116\116\111\110"))({Text="\081\117\097\114\107 \084\119\101\101\110";Parent=J;Size=j:Play(),Position=UDim2.fromOffset(0,25),BackgroundColor3=Color3.new(.4,1,.57),MouseEnter=j.Target.setLambda(UDim2.new(.2,0,0,50)),MouseLeave=j.Target.setLambda(UDim2.new(.15,0,0,50))})local i=h:Create(((r("\084\101\120\116\066\117\116\116\111\110"))({Text="\084\119\101\101\110\083\101\114\118\105\099\101",Parent=J,Position=UDim2.fromOffset(0,85);Size=C,BackgroundColor3=Color3.new(.4,.57,1)})).Object,L,{Size=d})i:Play()return function()g.Cleanup()i:Destroy()end end
local ReplicatedStorage = game:GetService "ReplicatedStorage"
local TweenService = game:GetService "TweenService"

local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New

return function(parent)
	local START = UDim2.fromOffset(0, 50)
	local TARGET = UDim2.new(0.15, 0, 0, 50)
	local info = TweenInfo.new(
		1, -- TIME
		Enum.EasingStyle.Bounce
	)

	local T = Quark.Animations.Tween(START, Quark.State(TARGET), info)

	-- Tip text
	New "TextLabel" {
		Text = "Custom Quark Tweens will update when the target state updates. (They use TweenInfo)",
		TextColor3 = Color3.new(1, 1, 1),
		Size = UDim2.new(1, 0, 0, 20),
		BackgroundTransparency = 0.5,
		BackgroundColor3 = Color3.new(),
		TextXAlignment = "Left",
		Parent = parent,
	}

	New "TextButton" {
		Text = "Quark Tween",
		Parent = parent,
		Size = T:Play(),
		Position = UDim2.fromOffset(0, 25),
		BackgroundColor3 = Color3.new(0.4, 1, 0.57),

		MouseEnter = T.Target.setLambda(UDim2.new(0.2, 0, 0, 50)),
		MouseLeave = T.Target.setLambda(UDim2.new(0.15, 0, 0, 50)),
	}

	local Tween = TweenService:Create(
		New "TextButton"({
			Text = "TweenService",
			Parent = parent,
			Position = UDim2.fromOffset(0, 85),
			Size = START,
			BackgroundColor3 = Color3.new(0.4, 0.57, 1),
		}).Object,
		info,
		{
			Size = TARGET,
		}
	)
	Tween:Play()

	return function()
		Quark.Cleanup()
		Tween:Destroy()
	end
end
