# slideunlock-plugin **Repository Path**: WzkBr/slideunlock-plugin ## Basic Information - **Project Name**: slideunlock-plugin - **Description**: No description available - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-05 - **Last Updated**: 2022-04-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # slideunlock-plugin ![图片](http://7xrgqs.com1.z0.glb.clouddn.com/jquery-slideunlock-plugin.png) ## html ```html
Slide to unlock!
``` ## css In this case, just set the slider and container style, according to the needs of custom css or pictures, etc. ```css .slideunlock-wrapper{ width: 360px; position: relative; padding: 50px; background: #ECF0F1; margin: 0 auto; } .slideunlock-slider{ padding:20px; position: relative; border-radius: 2px; background-color: #FDEB9C; overflow: hidden; text-align: center; } .slideunlock-slider.success{ background-color: #E5EE9F; } .slideunlock-label{ width: 40px; position: absolute; left: 0; top: 0; height: 100%; background: #E67E22; z-index: 999; border-radius: 2px; cursor: pointer; } .slideunlock-label-tip{ z-index: 9; } @media screen and (max-width: 640px) { .slideunlock-wrapper{ width: 64%; } } ``` ## JavaScript independent of jQuery. See the [demo](https://github.com/ArronYR/slideunlock-plugin/blob/master/index.plainjs.html) ```javascript ``` depend on jQuery. See the [demo](https://github.com/ArronYR/slideunlock-plugin/blob/master/index.html) ```javascript ``` ```javascript var slider = new SliderUnlock(element, options, success, always); slider.init(); // element is required and right. id or class or any identifying which can be loaded by jquery. // if you dont want to give options, please give a null object, like this -- {} ``` *If you need to support mobile,Please add `jQuery mobile` plugin:* ``` ``` ## Demo

See the Pen jquery-slide-unlock by Arron.y (@ArronYR) on CodePen.

## About me Article:[SlideUnlock-Plugin](http://blog.helloarron.com/2016/03/17/javascript/jquery-slideunlock-plugin/) Blog:[http://blog.helloarron.com](http://blog.helloarron.com)