npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@simonmat21/tideon.js

v1.0.2

Published

A lightweight, extensible JavaScript animation engine with easing, sequences, curve-path motion, and from/to/mix transitions.

Readme

Tideon.js

Tideon.js is a lightweight, extensible JavaScript animation engine designed for creating smooth and expressive UI and canvas animations with minimal effort. It supports advanced animation features like easing, chained sequences, curve-path motion, and "from", "to", and "mix" transition styles.

Example use of Tideon.js : example website.

New! ✨ Now includes a built-in Curve Editor — a visual, draggable canvas tool that lets you define custom animation paths interactively!


🛠️ Features

  • ⚡ Powerful and fast frame-based animation loop
  • 🎛️ Rich easing support (linear, back, bounce, elastic, exponential, etc.)
  • 🔁 Sequences of chained animations
  • 🔄 Looping, delay, and custom per-frame logic
  • 🎯 Supports both absolute (to, from) and relative (animate) transitions
  • 🧹 Integrated curve editor with Catmull-Rom interpolation for smooth path motion
  • 🧼 Works seamlessly with HTML elements via htmlToObj wrapper

📦 Installation

Install via npm:

npm i @simonmat21/tideon.js

Then import it:

import { Animator, htmlToObj, initCurveEditor } from "@simonmat21/tideon.js";

Or include it directly in your HTML:

<script src="Animator.js"></script>

View on npm


🧠 Animator Class (Core API)

🛠️ Constructor

const ani = new Animator();

Creates a new animation manager instance.

⭮️ mainLoop(interval = 10)

Starts the animation engine loop, checking for and running animation stages every interval ms.

addStage({ funcName, Args }) or { func, Args }

Adds a new stage (step) in the animation pipeline.


🔧 Animator Functions

🏠 Structure

You animate objects by building stages, and then letting mainLoop() run those stages frame by frame.


🎮 animate(duration, A)

Performs relative property changes (deltas).

ani.animate(50, [
  {
    obj: myObj,
    changes: { x: 100, opacity: -0.3 },
    parameters: { ease: "easeOut" },
  },
]);
  • changes are deltas (not final values)
  • Automatically caches starting values
  • Supports parameters.ease

🌟 to(duration, A)

Animates from current state to a target value.

ani.to(60, [{ obj: myObj, changes: { x: 200, y: 100 } }]);

📽 from(duration, A)

Starts from an offset state, animates back to original.

ani.from(40, [{ obj: myObj, changes: { x: -50, y: -30 } }]);

🧪 mix(duration, A)

Mixes different animation types (from, to, animate) in one call.

ani.mix(80, [
  { tag: "from", obj: myObj, changes: { x: -100, y: -50 } },
  { tag: "to", obj: anotherObj, changes: { x: 300, y: 150 } },
  { tag: "animate", obj: thirdObj, changes: { opacity: 0.5 } },
]);

delay(duration)

Pauses the sequence for a fixed number of frames.

ani.delay(30); // Wait for 30 frames

🏃 animateFunc(duration, func)

Per-frame callback-based animation.

ani.animateFunc(100, (frame) => {
  obj.x += 1;
  obj.y += Math.sin(frame / 10);
});

🌍 standAloneCurve(obj, points, duration, ease)

Moves an object smoothly along a Catmull-Rom interpolated path.

ani.standAloneCurve(obj, points, 120, "easeInOutCubic");
  • points: An array of { x, y } coordinates
  • obj: Must have x and y properties

🔍 Curve Editor

initCurveEditor()

Adds a canvas-based curve editor on your screen to visually define path points by clicking and dragging.

  • ✍ Click to add a point
  • ↔ Drag to move
  • 📍 Double-click to delete
  • ⌨ Press E to export the path (prints to console)

Great for building paths to use with standAloneCurve()!


🏢 htmlToObj

A small utility class that wraps around a DOM element and gives you animation-friendly properties like:

  • x, y, width, height
  • rotation, scale, opacity, color

Example:

const box = new htmlToObj("boxId");
ani.standAloneTo(60, [{ obj: box, changes: { x: 200, opacity: 0.5 } }]);

🔧 Example

const a = new Animator();
a.standAloneFrom(40, [{ obj: myObj, changes: { x: -100, opacity: -0.5 } }]);
a.standAloneTo(60, [{ obj: myObj, changes: { x: 200, opacity: 1 } }]);
a.mainLoop();

🚀 License

MIT License


✨ Author

Created with ❤️ by Simon Mattekkatt (JustAGuy.21)