• Stars
    star
    510
  • Rank 86,627 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 11 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

apply direction aware animation to images caption

SlipHover

SlipHover apply direction aware hover animation for the caption of an image.

Index

Quick start

include the files

<script src="path/to/jquery.min.js"></script>
<script src="path/to/jquery.sliphover.min.js"></script>

call the the plugin on a container as your wish

$("#container").sliphover();

All done!

Options

you can custom the caption by passing options when call the plugin, all available options are listed below.

call the the plugin on a container wish you wish

$("#container").sliphover({
    option: value,
    option2: value2,
    ...
});
Option type default Description Example
height string 100% The height of the overlay. e.g.200px,50% view
target string 'img' Specify witch element the overlay will aplly on. Any valid CSS selector will do. view
caption string 'title' Witch attribute will be the content of the overlay. You can use custom HTML5 data attribute. e.g. data-caption view
duration number/string 'fast' How long will the animation will be in millisecond, fast equals to 200 and slow equals to 600. You can give you own number. e.g.500 view
fontColor string '#fff' The color of the text within the overlay view
backgroundColor string 'rgba(0,0,0,.5)' The background color of the overlay. Any valid CSS color value will do view
backgroundColorAttr string 'data-background' Also you can specify individual color for each overlay via the data-background attribute like this data-background="rgba(120,100,240,0.85)" view
reverse bool false Whether the animation direction is reversed view
textAlign string 'center' The horizon align of the caption view
verticalMiddle bool true The vertical align of the caption view
withLink bool true if image is wraped with a link the overlay will be clickable, set false to disable click view

Demo

Besides examples in the option table above, there are a few nice demos shows sliphover can work well with other image gallery plugins such as Wookmark, freewall and isotope.

Compatibility

  • Requirs jQuery 1.7+
  • Works well with all modern browsers and IE9+.

License

Licensed under the MIT License

More Repositories

1

t-rex-runner

the t-rex runner game extracted from chromium
JavaScript
1,866
star
2

HTML5_Audio_Visualizer

An audio spectrum visualizer built with HTML5 Audio API
HTML
1,138
star
3

HiChat

A chat application built with Node.js and Websocket
JavaScript
740
star
4

vscode-todo-highlight

a vscode extension to highlighting todos, fixmes, and any annotations...
JavaScript
505
star
5

3D_Audio_Spectrum_VIsualizer

a 3d audio spectrum viauslizer built with three.js
JavaScript
172
star
6

wayou.github.io

SCSS
146
star
7

selected

🎵 A collection of songs that I love, also shows how to sync lyric with HTML5 audio tag
JavaScript
144
star
8

MeowmeowPlayer

An HTML5 Music Player with Spectrum Visualizer
JavaScript
96
star
9

hexo-theme-material

a theme of hexo using the material design bootstrap
CSS
95
star
10

audio-visualizer-with-controls

html5 audio visualizer with audio play controls
JavaScript
85
star
11

anonymous-animals

anonymous animal icons used for anonymous users extracted from Google Docs
HTML
51
star
12

hexo-theme-gstyle

a hexo theme with google style
JavaScript
46
star
13

audio-recorder

js audio recorder
HTML
37
star
14

bazel-ts-example

Example demonstrates building TypeScript & React with Bazel
Starlark
26
star
15

hexo-image-caption

add caption for images within posts
JavaScript
22
star
16

like-fx-miniapp

微信小程序直播点赞效果
JavaScript
19
star
17

WebViewExample

work as a webview testing environment for frontend developers
Swift
18
star
18

splash-screen-example

an example of adding splash screen to web apps
JavaScript
14
star
19

turn-issues-to-posts-action

Github action which turns issues into markdown files
9
star
20

ssr-demo

ssr demo using puppeteer
JavaScript
9
star
21

siri-wave-miniapp

微信小程序 Siri 波形组件
JavaScript
9
star
22

format-copied-curl

format curl command
TypeScript
8
star
23

faker-cheatsheet

a collection of fake data generators
5
star
24

bazel-js-example

Examples demonstrate building JavaScript with Bazel
Python
5
star
25

hexo-theme-polymer

a mobile friendly hexo theme built with google polymer
JavaScript
5
star
26

node-crud

Node.js + Koa + MySQL CRUD example
JavaScript
5
star
27

101-interview-questions

101个面试问题,译自http://www.employmentking.co.uk/interviews/101-interview-questions/
4
star
28

mail-template

responsive mail template
HTML
4
star
29

http-transfer-encoding-chunked

Node.js example demonstrate the http chunked transfer encoding
JavaScript
4
star
30

baidu-gravity

adapted from google gravity
JavaScript
4
star
31

task-runner

TypeScript
3
star
32

pkgrc

fetch npmrc file wich contains mirror settings
JavaScript
3
star
33

big-web-quiz

questions from the big web quiz session of the Google I/O 2017
3
star
34

hexo-filter-pathfix

using absolute path for assets in posts
JavaScript
3
star
35

nestjs-load-config-based-on-env

nestjs load script configuration based on node env
TypeScript
2
star
36

materialize-example

materialize framework implementation for tieba mis
JavaScript
2
star
37

lame

lame mirror https://sourceforge.net/projects/lame/
C
2
star
38

koa-chunked-response

chunked response in koa
JavaScript
2
star
39

webpack-sass-import-issue

imports not processed by webpack in sass issue
JavaScript
2
star
40

d3-playaround

JavaScript
2
star
41

threejs-intro

JavaScript
1
star
42

xml-handling

Handling XML request&response in NestJS
TypeScript
1
star
43

Wallist

A Simple TODO managment application using HTML5 localStorage
JavaScript
1
star
44

mkreadme

generate a README.md file
JavaScript
1
star
45

phaser-game

JavaScript
1
star
46

pipixia

retrive video url for pipixia
HTML
1
star
47

css-module

minimal setup for css module demonstration
JavaScript
1
star
48

print-chunks-plugin

webpack plugin to print chunks for bundle
JavaScript
1
star
49

intersection-observer-api

intersection observe api demo
TypeScript
1
star
50

Responsive_Web_Design_Example

An example page of responsive web design
CSS
1
star
51

threejs-samples

examples written when i learn threejs
JavaScript
1
star
52

hbmm

manage and switch homebrew mirrors. homebrew 源镜像切换与管理
JavaScript
1
star
53

zch-slots

JavaScript
1
star
54

nest-global-filter-injection-issue

TypeScript
1
star
55

test

http://wayou.github.io/test/
JavaScript
1
star
56

test-turn-issues-to-posts-action

1
star
57

recoil-nest-select

the right way to setup nested selects with Recoil
TypeScript
1
star
58

emg

a simple, enhanced react image component with loading spinner, fallback support and other features
JavaScript
1
star
59

num-input

微信小程序自定义组件带加减的数字输入框
TypeScript
1
star
60

angular-commit-complete

fish complete for angular commit message
Shell
1
star
61

github-activity-divider

add divider between new loaded content and old ones in github activity page
JavaScript
1
star
62

css-fixed-background-effect

http://codyhouse.co/demo/fixed-background-effect/index.html
CSS
1
star