ctk-transitions — animation playground + code generator for your CTk apps #2804
kandelucky
started this conversation in
Showcase
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all 👋
I just published a tool that might be useful if you've ever wanted to add
nice animations to your CustomTkinter apps without writing tween logic
from scratch.
ctk-transitions is a standalone playground that lets you pick an
easing curve and a duration, then watch the animation run on six widget
categories — buttons, cards, text, loaders, popups, and toasts. When you
find the combination you like, hit Generate code and you get a
self-contained
.pymodule that wraps everything you need to drop theanimation into your own project.
What's in the generated code
Tweenclass (~30 lines, time-based at ~60 fps viaafter(16ms))lerp, color interpolation if needed)if __name__ == "__main__"demoSo the output stays dependency-free beyond
customtkinter— no extralibraries, no pip subtree, just paste-anywhere Python.
Quick start
Links
The 9 easings included:
linear,ease_in,ease_out,ease_in_out,ease_out_quint,back_out,elastic_out,spring,bounce_out—the usual set from easings.net references.
Happy to hear feedback or feature requests, and if anyone's tried
similar things, would love to see what you've built.
(This started as a tool window inside
CTkMaker, a visual designer
I'm building for CustomTkinter — figured the playground was useful
enough on its own to publish separately.)
Beta Was this translation helpful? Give feedback.
All reactions