[PR #185] [MERGED] feat(react): add animation/timeline hook #1139

Closed
opened 2026-03-14 09:20:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/185
Author: @msmps
Created: 9/26/2025
Status: Merged
Merged: 9/27/2025
Merged by: @msmps

Base: mainHead: feat/react-animation-20250926104002


📝 Commits (2)

  • 548da87 feat(react): add animation/timeline hook
  • 8c4a1fc fix: wrap with use effect

📊 Changes

11 files changed (+242 additions, -5 deletions)

View changed files

📝 packages/react/README.md (+135 -0)
packages/react/examples/animation.tsx (+78 -0)
packages/react/src/hooks/index.ts (+5 -0)
📝 packages/react/src/hooks/use-event.ts (+0 -0)
📝 packages/react/src/hooks/use-keyboard.ts (+0 -0)
📝 packages/react/src/hooks/use-renderer.ts (+0 -0)
📝 packages/react/src/hooks/use-resize.ts (+0 -0)
📝 packages/react/src/hooks/use-terminal-dimensions.ts (+0 -0)
packages/react/src/hooks/use-timeline.ts (+21 -0)
📝 packages/react/src/index.ts (+1 -4)
📝 packages/react/src/reconciler/renderer.ts (+2 -1)

📄 Description

useTimeline(options?)

Create and manage animations using OpenTUI's timeline system. This hook automatically registers and unregisters the timeline with the animation engine.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/185 **Author:** [@msmps](https://github.com/msmps) **Created:** 9/26/2025 **Status:** ✅ Merged **Merged:** 9/27/2025 **Merged by:** [@msmps](https://github.com/msmps) **Base:** `main` ← **Head:** `feat/react-animation-20250926104002` --- ### 📝 Commits (2) - [`548da87`](https://github.com/anomalyco/opentui/commit/548da8708c1737b7af18070c690939393b5e641d) feat(react): add animation/timeline hook - [`8c4a1fc`](https://github.com/anomalyco/opentui/commit/8c4a1fcda74ac5ec93dcba4a9a11e89a7c2649bb) fix: wrap with use effect ### 📊 Changes **11 files changed** (+242 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/react/README.md` (+135 -0) ➕ `packages/react/examples/animation.tsx` (+78 -0) ➕ `packages/react/src/hooks/index.ts` (+5 -0) 📝 `packages/react/src/hooks/use-event.ts` (+0 -0) 📝 `packages/react/src/hooks/use-keyboard.ts` (+0 -0) 📝 `packages/react/src/hooks/use-renderer.ts` (+0 -0) 📝 `packages/react/src/hooks/use-resize.ts` (+0 -0) 📝 `packages/react/src/hooks/use-terminal-dimensions.ts` (+0 -0) ➕ `packages/react/src/hooks/use-timeline.ts` (+21 -0) 📝 `packages/react/src/index.ts` (+1 -4) 📝 `packages/react/src/reconciler/renderer.ts` (+2 -1) </details> ### 📄 Description #### `useTimeline(options?)` Create and manage animations using OpenTUI's timeline system. This hook automatically registers and unregisters the timeline with the animation engine. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:20:30 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#1139
No description provided.