jQuery 滑动对比插件 twentytwenty

码农软件 · 软件分类 · jQuery界面效果 · 2020-01-01 21:43:23

软件介绍

twentytwenty 是一款基于 jQuery 的滑动对比插件,它也支持水平方向和垂直方向、支持设置前后对比区域大小。twentytwenty 的实现原理是两张图片叠在一起,然后是使用 CSS clip:rect 进行裁切。

用法示例

1、HTML

<div id="container1">
 <!-- The before image is first -->
 <img src="http://placehold.it/400x200&text=1" />
 <!-- The after image is last -->
 <img src="http://placehold.it/400x200&text=2" />
</div>

2、JavaScript

$(function(){
    $('.twentytwenty-container').twentytwenty();
});

查看演示

浏览器支持:

  • IE8+

  • Firefox (latest)

  • Chrome

  • Safari

  • Android

  • iOS (iPhone, iPad)

本文地址:https://codercto.com/soft/d/22459.html

Mastering Regular Expressions, Second Edition

Mastering Regular Expressions, Second Edition

Jeffrey E F Friedl / O'Reilly Media / 2002-07-15 / USD 39.95

Regular expressions are an extremely powerful tool for manipulating text and data. They have spread like wildfire in recent years, now offered as standard features in Perl, Java, VB.NET and C# (and an......一起来看看 《Mastering Regular Expressions, Second Edition》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

html转js在线工具
html转js在线工具

html转js在线工具