coolTransitions - Animated Screen Transitions Module

:star: Star on GitHub for updates

btn-github btn-npm btn-creatorstore


Hey everyone,

I made an open-source library for procedural screen transitions. It currently comes with 14 pre-made effects.

I kept running into the same thing across projects: needing a clean transition between scenes or menus, and either writing something janky from scratch every time or settling on a basic fade. So I packaged everything up into one module.


Effects

14 transition types across three categories:

Grid patterns: Hexagon, Triangle, Tiles, Polka Dots, Blinds, Checkerboard, Random Tiles
Shapes: Fade, Iris, Diamond, Box
Wipes: Linear Wipe, Split, Cross Wipe

Each grid effect supports wave propagation from different origins (Center, TopLeft, BottomRight), so you get a lot of variety from the same effect just by changing where the wave starts.


How to use

Luau

Grab the module from the Creator Store and drop it into ReplicatedStorage.

local coolTransitions = require(game.ReplicatedStorage.coolTransitions)
local TransitionManager = coolTransitions.TransitionManager

local manager = TransitionManager.new(playerGui)

-- single transition
manager:Play("In", 1, "Center", "Hexagon")

-- in-out with midpoint
manager:PlayInOut(2, function()
    -- load your next scene here
end, "Center", "Iris", 0.5)

Play() yields the calling thread, so wrap in task.spawn() if you don’t want to block. IsPlaying() to check state. Destroy() to clean up.

roblox-ts

npm i @boshyxd/cool-transitions
import { TransitionManager, TransitionType, TransitionDirection, TransitionWaveOrigin } from "@boshyxd/cool-transitions";

const transitions = new TransitionManager(playerGui);

transitions.play(
    TransitionDirection.In,
    1,
    TransitionWaveOrigin.Center,
    TransitionType.Hexagon
);

For scene changes, playInOut handles the full in-then-out cycle with a midpoint callback:

transitions.playInOut(2, () => {
    // load your next scene here
}, TransitionWaveOrigin.Center, TransitionType.Iris);

Configuration

local manager = TransitionManager.new(playerGui, {
    color = Color3.new(0, 0, 0),  -- overlay color (default: dark gray)
    displayOrder = 99,             -- GUI layer order
})

MIT licensed, use it however you want. If you have ideas for new effects or run into issues, let me know here or open an issue on GitHub.

@boshy_z

49 Likes

this is awesome great job! i will be using this 100%

3 Likes

this is SO COOL awesome work dude

2 Likes

This is amazing! I will most definitely use this for my projects.

1 Like

wow this is super cool, swag, and dope. will be using this for sure!