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

vtron-animate

v1.0.0

Published

Vtron一体化产品部公用CSS动画库

Downloads

2

Readme

vtron-animate

Vtron一体化产品部公用CSS动画库

如何使用

  • 如果你是前端工程化项目,直接 npm install vtron-animate 就可以直接使用了
  • 如果不是前端工程化,单纯引入文件 你可以直接下载vtron-animate.min.css文件就好了

如何开发

如果你想给这个库增加动画效果:

  1. 把本项目clone下来
  2. 运行npm install
  3. 为了更好的代码可读性,在src目录下,开一个文件夹,把你想写的css写在文件夹里面(你可以参考slide是怎么写的)
  4. 当你每次写好代码后,运行npm run build编译合并压缩代码
  5. 编译好的代码就在dist文件夹里面,你可以测试能不能用

ps. 代码风格最好严格遵循/src/slide来写,一定要写注释

建议测试方法:

在dist文件夹下面建一个index.html,如下

<!DOCTYPE html>
<head>
    <link rel="stylesheet" type="text/css" href="vtron-animate.min.css">
</head>

<body>
    <button id="btn1">点击看效果</button><br/><br/><br/>
    <div id="div1" style="width: 100px;height: 200px; background-color: red;"></div>

    <script>
        var btn1 = document.getElementById('btn1')
        var div1 = document.getElementById('div1')
        btn1.onclick = function(){
            btn1.disabled = "disabled"
            div1.className = 'animated slideInLeft'//就在这里更换你新开发的效果
            setTimeout(function(){
                btn1.disabled = ''
                div1.className = ''
            },1500)
        }
    </script>
</body>