jQuery Caption Display Plugin Captall

Add-ons
2026-07-26 05:19 3 次浏览 • 0 次下载 222.7KB
jQuery Caption Display Plugin Captall

Usage

Add the jquery library, captall, and easing to your page.

1
2
3
<script src='js/jquery.min.js' type='text/javascript'></script>
<script src='js/jquery.captall.min.js' type='text/javascript'></script>
<script type="text/javascript" src="js/easing.js"></script>

html

1
<p><img src="images/sea.jpg" id="image" alt="Hi, I'm a caption" width="300" height="198" /></p>

Javascript call

1
2
3
4
5
6
7
8
9
10
11
12
$(document).ready(function() {
// Simple call
$('#image').captall();
// Call with options
$('#image').captall({
slideFrom: 'topcenter',
slideTo: 'center',
width: '50%',
height: '1/2'
});
});

Options:

animation String Default: Slide - How should the caption appear?

backgroundColor String Default: FFFFFF - Define the background color.

caption String Default: Empty - Text, link, image, etc.

delay Integer Default: 0 - Define the delay for showing and hiding elements, fading, and sliding.

delay Integer Default: 0 - Define the delay for displaying elements, fading, and sliding.

delayOut Integer Default: 0 - Define the delay for hiding elements, fading, and sliding.

easing String Default: Empty - Define the easing effect for element animations in and out. Only applies to slides.

easingIn String Default: Empty - Define the easing effect for the element's entrance animation. Slide only.

easingOut String Default: Empty - Define the easing effect for the element's exit animation. Slide only.

fadeOutAfter Integer Default: 0 - Define the time after which a fixed element fades out.

fontColor String Default: 000000 - Define the font color.

fontSize String Default: 16px - Define the font size.

height Integer Default: 30 - The height of the element.

inTime Integer: Default value: 200 - The time in milliseconds for which the element is displayed.

left Integer: Default value: 0 - The left position of the element.

opacity Float: Default value: 0.7 - The default opacity of the floating element.

outTime Integer: Default value: 200 - The time in milliseconds for the element to disappear.

padding Array: Default value: [0] - Defines the space between the element's border and its content.

paddingTop Integer: Default value: 0 - The top padding.

paddingRight Integer: Default value: 0 - The right padding.

paddingBottom Integer: Default value: 0 - The bottom padding.

paddingLeft Integer: Default value: 0 - The left padding.

sldeFrom String: Default value: Bottom - Defines the direction from which the element slides in.

slideTo String: Default value: Bottom - Defines the direction in which the element slides out.

textAlign String: Default value: Left - The text alignment within the element.

time Integer: Default value: 200 - The time in milliseconds for the element to appear and disappear.

top Integer: Default value: 0 - The top position of the element.

width String: Default value: Full - The width of the element.

星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare