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

saminate

v1.0.11

Published

GSAP Animation Library by samshh, it primarily uses the ScrollTrigger and TextPlugin from GSAP. Please refer to the GSAP Docs for more in-depth explanation

Readme

sAminate v1.0.11

GSAP Animation Library by samshh, it primarily uses the ScrollTrigger and TextPlugin from GSAP. Please refer to the GSAP Docs for more in-depth explanation

Website Demo: sAminate

Animations:

  • SVG Animations
  • Text Animations
  • Position Animations
  • Opacity Animations
  • Scale Animations
  • Rotate Animations
  • Background Color and Color Animations
  • Pin Element

Pros:

  • Use the source code as boilerplate for your project :>
  • fully customizable parameters

Cons:

  • uhmm?

This is an early version, and I still have more ways to learn... if issues or bugs are seen, I would be glad if you report it to me, and I'll try to fix it ASAP

Installation

Install via npm in your directory:

cd your/project/root/directory

npm install gsap
npm install saminate

Usage

Import:

import { gsap } from  "gsap";
import { ScrollTrigger } from  "gsap/ScrollTrigger";
import { TextPlugin } from  "gsap/TextPlugin";
import { functionName, anotherFunctionName } from 'saminate';

gsap.registerPlugin(ScrollTrigger);
gsap.registerPlugin(TextPlugin);

Functions

Parameter Breakdown:

  • selector: A CSS selector string that identifies the HTML element to be animated.
  • trigger: A CSS selector string that identifies the HTML element that triggers the animation when it's scrolled into view.
  • duration: The duration of the animation, in seconds.
  • delay (default 0): The amount of time, in seconds, to wait before starting the animation.
  • ease (default "power1.inOut"): The easing function to use for the animation. Easing functions determine the rate of change of the animation.
  • start (default "top center"): The position of the scroll where the animation should start. It's a string with two values: one for the position of the scroll and one for the position of the trigger.
  • end (default "top center"): The position of the scroll where the animation should end.
  • toggleActions (default "play none none reverse"): A string with four values that determine what happens when the scroll enters and leaves the start and end points of the trigger.
  • markers (default false): If true, GSAP will show markers at the start and end points of the trigger.
  • scrub (default false): If true, the animation will scrub (i.e., progress at the same rate as the scroll).

Here are the unique parameters used in some functions:

  • opacity: The starting opacity of the element. The element will animate from this opacity to its current opacity.
  • x: The starting x-coordinate of the element. The element will animate from this position to its current position.
  • y: The starting y-coordinate of the element. The element will animate from this position to its current position.
  • text: The text to animate to.
  • color: The color to animate to.
  • fromOpacity: The starting opacity for the animateOpacityChange function.
  • toOpacity: The ending opacity for the animateOpacityChange function.
  • scale: The scale to animate to.
  • rotate: The rotation angle to animate to.
  • fill: The fill color to animate to in the SVG animation functions.
  • durationOC: The duration of the fill color animation in the SVG animation functions.
  • easeOC: The easing function for the fill color animation in the SVG animation functions.
  • endTrigger: An optional CSS selector string that identifies the HTML element that ends the pinning animation when it's scrolled into view.

animatePositionX ();

copy the code below and change each parameters

animatePositionX(
  selector,
  trigger,
  x,
  duration,
  opacity,
  delay,
  ease,
  start,
  end,
  toggleActions,
  markers,
  scrub
);

animate an HTML element along the x-axis

animatePositionY ();

copy the code below and change each parameters

animatePositionX(
  selector,
  trigger,
  y,
  duration,
  opacity,
  delay,
  ease,
  start,
  end,
  toggleActions,
  markers,
  scrub
);

animate an HTML element along the y-axis

animateTextRemove ();

copy the code below and change each parameters

animateTextRemove(
  selector,
  trigger,
  duration,
  delay,
  ease,
  start,
  end,
  toggleActions,
  markers,
  scrub
);

animate an HTML element to remove its text content.

animateText ();

copy the code below and change each parameters

animateText(
  selector,
  text,
  trigger,
  duration,
  delay,
  ease,
  start,
  end,
  toggleActions,
  markers,
  scrub
);

animate the text content of an HTML element.

animateBgChangeColor();

copy the code below and change each parameters

animateBgChangeColor(
  selector,
  color,
  trigger,
  duration,
  delay,
  ease,
  start,
  end,
  toggleActions,
  markers,
  scrub
);

animate the background element of your HTML to change its background-color.

animateChangeColor();

copy the code below and change each parameters

animateChangeColor(
  selector,
  color,
  trigger,
  duration,
  delay,
  ease, 
  start,
  end,
  toggleActions,
  markers,
  scrub 
);

animate the element of your HTML to change its color.

animateOpacityChange();

copy the code below and change each parameters

animateOpacityChange(
  selector,
  trigger,
  duration,
  fromOpacity,
  toOpacity,
  ease,
  start,
  end,
  toggleActions,
  scrub,
  markers
);

animate the element of your HTML to change its opacity.

animateScale();

copy the code below and change each parameters

animateScale(
  selector,
  scale,
  trigger,
  duration,
  delay,
  ease,
  start,
  end,
  toggleActions,
  markers,
  scrub
);

animate the element of your HTML to change its scale.

animateRotate();

copy the code below and change each parameters

animateRotate(
  selector,
  rotate,
  trigger,
  duration,
  delay,
  ease,
  start,
  end,
  toggleActions,
  markers,
  scrub
);

animate the element of your HTML to change its rotation.

animateSVGStroke();

copy the code below and change each parameters

animateSVGStroke(
  selector, // sample ".svg path"
  trigger,
  duration,
  fill,
  delay,
  start,
  end,
  toggleActions
  ease,
  scrub,
  markers
);

animate paths of an SVG to have a drawing effect on a single path or in multiple paths it will animate all the paths simultaneously.

animateSVGStrokeStagger();

copy the code below and change each parameters

animateSVGStrokeStagger(
  selector, // sample ".svg path"
  trigger,
  duration,
  fill,
  delay,
  start,
  end,
  toggleActions // unique default "play reset play reset"
  ease,
  scrub,
  markers
);

animate path of an SVG to have a drawing effect on a single path or in multiple paths it will animate the paths each at a time.

animatePin();

copy the code below and change each parameters

animatePin(
  selector,
  trigger,
  start, // unique default "center center"
  end, // unique default "center center"  
  markers,
  scrub,
  toggleActions,
  endTrigger // unique default as trigger
);

pin an element to stay in viewport while scrolling.

THANK YOU!