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

yun-animation

v1.1.0

Published

<p align="center"> <a href="https://img.badgesize.io/https:/unpkg.com/[email protected]/packages/main.js?label=gzip%20size%3A%20JS&compression=gzip"> <img src="https://img.badgesize.io/https:/unpkg.com/[email protected]/packages/main.js?label=gzip%20s

Downloads

6

Readme

yun-animation

A animation kit.

Provide only one method to apply animation to element.(only 0.89KB)

只提供一个函数来构建动画。(只有0.89KB)

Install

npm install yun-animation -S

Usage

It's easy to use.

很简单的就能使用。

import defineAnimation from 'yun-animation';

var element1 = document.querySelector('#box1');
var element2 = document.querySelector('#box2');

/** define animation
 *	定义一个动画
 */
var animation = defineAnimation({
	left: '320px',
	transform: 'translate3d( -50%, -30%, 100px)',
  /** color: '#333'
  	Error: Color transformation is not supported! 
  	错误:不支持颜色转换!*/
})

/** apply animation to element.(The element will stay at the end of the frame)
	* 将动画作用在元素上。(元素会停在最后1帧)
	*/
animation.to(element1)

/** animation complete callback.
  * 动画结束回调。
  */
animation.to(element2)
  .end(() => {
    // also use other animation.
    // 当然也可以使用其它动画续接。
    defineAnimation({left: '10px'}).to(element2)
	})

/** duration time.(default 2s)
  * 动画持续时间。(默认2秒)
  */
defineAnimation({top: '130px'}, 2).to(element2)

Links🔗关联链接

yun-desktop-ui

https://www.npmjs.com/package/yun-animation

A Component Library for Vue.js.(Developing...)

一个Vue组件库,专门用于构建云端桌面。(开发中...)

yun-desktop(development....)

https://bndiya.com/desktop#/login

A desktop system By cloud.(Developing...)

一个云端桌面形同。(开发中...)