jquery实现的各种图片边界特效_时代Java(NowJava.com) -JS/jQuery代码 -演示与下载 -时代Java

Inset Border Effect jQuery Plugin

by Robin Thrift

This plugin puts a border around the targeted elements (typically images), but unlike normal CSS borders it covers up part of the image. When the element is hovered over, the border animates to the sides, revealing the whole image. This effect is very often used on Flash websites. This plugin can be used in combination with almost any lightbox (tested with colorbox). Feel free to do whatever you like with this plugin. However if you redistribute (even when altered) you must give credit to me.

Usage

Simple:

$("img").insetBorder();

All options:

$("img").insetBorder({
  speed          : 1000,           // 1000 = 1 second, default 250
  borderColor    : "orangered",    // Default white (#ffffff)
  inset          : 10,             // Border width, default 10px
  borderType     : "solid",        // Border type, e.g. dashed
  outerClass     : "ibe_outer",    // Class name of outer wrap
  innerClass     : "ibe_inner"     // Class name of inner border
});

Settings Generator


  • text
  • text
  • text

Default

$(selector).insetBorder();
  • text
  • text
  • text

Big Border

$(selector).insetBorder({
  inset: 50
});
  • text
  • text
  • text

Not centered

$(selector).insetBorder({
  insetleft: 60,
  insetright: 40,
  insettop: 14,
  insetbottom: 86
});
  • text
  • text
  • text

Colored Border

$(selector).insetBorder({
  borderColor: "#000000"
});
  • text
  • text
  • text

Slower Speed

$(selector).insetBorder({
  speed: 500
});
  • text
  • text
  • text

Double Border

$("selector").insetBorder({
  borderType: "double"
});

Rectangles

$("selector").insetBorder();

代码整理:时代Java(NowJava.com) 更 多相关效果,请到时代Java(NowJava.com) 脚本下载栏目

注:此代码仅供学习交流,请勿 用于商业用途。

时代Java(NowJava.com)素材中心整 理。




下载代码说明
X关闭

基于jquery的实现的各种图片边界特效

jquery实现的图片边界特效,鼠标滑过图片,图片放大或者缩小显示边界