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

ripples.wxss

v1.1.0

Published

Ripples.wxss 是一个为微信小程序量身定制的 css3 动效库,引领微交互的潮流。大部分动效源自 [Animate.css](https://daneden.github.io/animate.css/)。

Downloads

5

Readme

Ripples.wxss

Ripples.wxss 是一个为微信小程序量身定制的 css3 动效库,引领微交互的潮流。大部分动效源自 Animate.css

安装

  1. 如果你的微信小程序项目基于 nodejs 开发,你可以使用 npm 安装,并拷贝到相关目录后 @import
npm install ripples.wxss --save
  1. 或者直接 clonedownload 仓库https://github.com/jeasonstudio/Ripples.wxss.git,拷贝 ripples.wxssripples.min.wxss到相关目录后 @import

使用

  1. 首先在你想引入 Ripples.wxss 动效的 element 上加 ripple class。

  2. 如果你想让他循环不断播放,请添加 infinite class。

<view class="ripple infinite bounce">element</view>
  1. 接下来你需要再添加如下你需要的 class:
  • bounce
  • flash
  • pulse
  • rubberBand
  • shake
  • headShake
  • swing
  • tada
  • wobble
  • jello
  • bounceIn
  • -bounceInDown
  • -bounceInLeft
  • -bounceInRight
  • bounceInUp
  • bounceOut
  • bounceOutDown
  • bounceOutLeft
  • bounceOutRight
  • bounceOutUp
  • fadeIn
  • fadeInDown
  • -fadeInDownBig
  • fadeInLeft
  • -fadeInLeftBig
  • fadeInRight
  • -fadeInRightBig
  • fadeInUp
  • fadeInUpBig
  • fadeOut
  • fadeOutDown
  • fadeOutDownBig
  • fadeOutLeft
  • fadeOutLeftBig
  • fadeOutRight
  • fadeOutRightBig
  • fadeOutUp
  • fadeOutUpBig
  • flipInX
  • flipInY
  • flipOutX
  • flipOutY
  • lightSpeedIn
  • lightSpeedOut
  • rotateIn
  • rotateInDownLeft
  • rotateInDownRight
  • rotateInUpLeft
  • rotateInUpRight
  • rotateOut
  • rotateOutDownLeft
  • rotateOutDownRight
  • rotateOutUpLeft
  • rotateOutUpRight
  • hinge
  • rollIn
  • rollOut
  • zoomIn
  • zoomInDown
  • zoomInLeft
  • zoomInRight
  • zoomInUp
  • zoomOut
  • zoomOutDown
  • zoomOutLeft
  • zoomOutRight
  • zoomOutUp
  • slideInDown
  • slideInLeft
  • slideInRight
  • slideInUp
  • slideOutDown
  • slideOutLeft
  • slideOutRight
  • slideOutUp

具体样式可以参考 Animate.css

使用实例

  • 你可以查看根目录下的 DEMO 项目,为所有 Ripples.wxss 的综合展示:

demo

  • 也可以参考如下的例子:
//imdex.js
Page({
   data: {
       bounceShow: false
   },
   showBounce: function () {
   	let that = this
       that.setData({
           bounceShow: true
       })
       setTimeout(function() {
           that.setData({
               bounceShow: false
           }, 2000)
       })
}}
/* imdex.wxss */
@import "ripples.wxss";
<!--index.wxml-->
<view class="ripple {{bounceShow ? bounce:''}}">bounce</view>
  • 不同场景下的使用逻辑还请自行斟酌。

个性化引入

Ripple.wxss 使用 gulp.js 进行 wxss 的格式化和压缩,所以你也可以用它来个性化生成 Ripples.min.wxss 后引入,以避免代码冗余。

  1. 你需要安装 gulp 和其他依赖
$ cd path/to/Ripples.wxss/
$ sudo npm install
  1. 你可以执行 gulp 命令,来生成 ripples.wxss ripples.min.wxss 文件,具体包含请参见并修改根目录下的 ripples-config.json 文件。
"attention_seekers": {
  "bounce": true,
  "flash": false,
  "pulse": false,
  "shake": true,
  "headShake": true,
  "swing": true,
  "tada": true,
  "wobble": true,
  "jello":true
}

开源协议