Giter Site home page Giter Site logo

jquery.stamper's Introduction

jquery.stamper

一款在网页上模拟现实中的盖章效果的jQuery插件

1、说明

jquery.stamper是一款模拟现实中盖章效果的jquery插件,通过动画的形式展现盖章效果。访问GitHub项目库

2、使用

在页面上引入jquery和jquery.stamper两个JS文件:

<script src="jquery-1.10.2.min.js"></script>
<script src="jquery.stamper.js"></script>

然后在需要盖章的元素上调用jquery.stamper即可,如下:

$("#elementId").stamper({
    image : "images/stamper.png"
});

3、参数

jquery.stamper可配置的参数如下:

1.id:img对象的id,指定不同的id则会生成不同的img对象,默认是jquery_stamper_img
2.image:章的图片路径,必须指定
3.scale:章图片的放大倍数,默认5倍。如果设置过大可能会超出屏幕大小太多导致较长时间才会显示
4.speed:效果速度值,默认是600(单位毫秒)。通常与scale配合一起决定整个效果的时间
5.complete:盖章特效完成后的回调方法

jquery.stamper's People

Contributors

ferreousbox avatar

Watchers

James Cloos avatar Qiang avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.