GithubHelp home page GithubHelp logo

magnifier's Introduction

magnifier

一个商品放大镜的jquery插件

  • 依赖jquery >=1.7
  • 兼容性IE >= 9
  • @multiple 可放大的倍数,默认是2倍
  • @bgColor 暂时只能设置rgba的颜色
  • @canShow 如果因为加载等原因想暂时禁止鼠标的移入事件,可以通过给当前元素下的img节点增加data-show的属性,当属性值为false时,移入效果终止,直到data-show属性更改为非false等其他值。也可以一开始就设置false来禁止鼠标移入效果
  • @time 设置延迟时间,避免误触发,提高用户体验,单位(ms)

简单的展示使用,外面一个div,里面放一个img就可以了。

$('#imgBox').magnifier();

简单的展示页面

简书的相关介绍页面

magnifier's People

Contributors

qiqihaobenben avatar

Stargazers

 avatar  avatar

Watchers

 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.