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 🙏

© 2024 – Pkg Stats / Ryan Hefner

anima-fx

v2.0.1

Published

fx, a animation module from zepto

Downloads

12

Readme

fx


fx module from zepto.


Effects

$.fx

Global settings for animations:

  • $.fx.off (default false in browsers that support CSS transitions): set to true to disable all animate() transitions.

  • $.fx.speeds: an object with duration settings for animations:

    • _default (400 ms)
    • fast (200 ms)
    • slow (600 ms)

Change existing values or add new properties to affect animations that use a string for setting duration.

animate

  • animate(properties, [duration, [easing, [function(){ ... }]]]) ⇒ self

  • animate(properties, { duration: msec, easing: type, complete: fn }) ⇒ self

  • animate(animationName, { ... }) ⇒ self Smoothly transition CSS properties of elements in the current collection.

  • properties: object that holds CSS values to animate to; or CSS keyframe animation name

  • duration (default 400): duration in milliseconds, or a string:

    • fast (200 ms)
    • slow (600 ms)
    • any custom property of $.fx.speeds
  • easing (default linear): specifies the type of animation easing to use, one of:

    • ease
    • linear
    • ease-in / ease-out
    • ease-in-out
    • cubic-bezier(...)
  • complete: callback function for when the animation finishes

  • delay: transition delay in milliseconds v1.1+ Zepto also supports the following CSS transform properties:

  • translate(X|Y|Z|3d)

  • rotate(X|Y|Z|3d)

  • scale(X|Y|Z)

  • matrix(3d)

  • perspective

  • skew(X|Y)

If the duration is 0 or $.fx.off is true (default in a browser that doesn’t support CSS transitions), animations will not be executed; instead the target values will take effect instantly. Similarly, when the target CSS properties match the current state of the element, there will be no animation and the complete function won’t be called.

If the first argument is a string instead of object, it is taken as a CSS keyframe animation name.

$("#some_element").animate({
  opacity: 0.25, left: '50px',
  color: '#abcdef',
  rotateZ: '45deg', translate3d: '0,10px,0'
}, 500, 'ease-out')