vue带缩略图的轮播图插件_带有缩略图轮播的自适应图像库

本文介绍如何使用Elastislide创建一个响应式图像库,该库带有Vue支持的缩略图轮播。教程详细展示了HTML、CSS和JavaScript的实现过程,包括使用jQuery Touchwipe插件实现移动设备和键盘导航。
摘要由CSDN通过智能技术生成
vue带缩略图的轮播图插件

vue带缩略图的轮播图插件

Responsive Image Gallery

Today we want to show you how to create a responsive image gallery with a thumbnail carousel using Elastislide. Inspired by Twitter’s “user gallery” and upon a request to show an integration of Elastislide, we want to implement a responsive gallery that adapts to the view-port width. The gallery will have a view switch that allows to view it with the thumbnail carousel or without. We’ll also add the possibility to navigate with the keyboard.

今天,我们想向您展示如何使用Elastislide用缩略图轮播创建响应式图像库。 受Twitter的“用户画廊”的启发,并应要求显示Elastislide的集成,我们希望实现一个适应视口宽度的响应画廊。 画廊将具有一个视图开关,可以使用或不使用缩略图轮播对其进行查看。 我们还将添加使用键盘导航的可能性。

We’ll use the jQuery Touchwipe Plugin that will make it possible to navigate the images by “wiping” on the iPhone and iPad.

我们将使用jQuery Touchwipe插件,通过在iPhone和iPad上“擦拭”来导航图像。

The images in the demo are by über-talented Sherman Geronimo-Tan and you can find his Flickr photostream here: Sherman Geronimo-Tan’s Flickr Photostream The photos are licensed under the Creative Commons Attribution 2.0 Generic (CC BY 2.0) License.

演示中的图像是由über-talentedSherman Geronimo-Tan制作的,您可以在这里找到他的Flickr照片流: Sherman Geronimo-Tan的Flickr照片这些照片均根据Creative Commons Attribution 2.0 Generic(CC BY 2.0)许可进行许可

So, let’s do it!

所以,让我们开始吧!

标记 (The Markup)

For the HTML structure we’ll have a main wrapper with the class “rg-gallery”. We’ll also give it the same ID. In another div with the class “rg-thumbs” we’ll add the structure of the Elastislide carousel:

对于HTML结构,我们将有一个主包装,带有“ rg-gallery”类。 我们还将为其赋予相同的ID。 在“ rg-thumbs”类的另一个div中,我们将添加Elastislide轮播的结构:


<div id="rg-gallery" class="rg-gallery">
	<div class="
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值