まだデータがありません。
画像にキャプションをオーバーレイ「captioner-js」
当ページのリンクには広告が含まれています。
スポンサーリンク
画像にキャプションをオーバーレイ表示するプラグイン「captioner-js」を紹介します。
jQueryプラグイン「captioner-js」
このプラグインを使えば、画像のキャプションをオーバーレイ表示することができます。
キャプションには「title(タイトル)」「alt(概要)」の2つ表示することができ、アニメ効果を付加することもできます。
スポンサーリンク
それではデモではご覧ください。
デモのソース(HTML + jQuery)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="captioner-jsのデモでーす。">
<title>CaptionerJs - jQueryプラグイン</title>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="CaptionerJs.js"></script>
<link rel="stylesheet" type="text/css" href="CaptionerJs.css" />
</head>
<style>
.CaptionerJs-container .copy {
margin-top: 10px;
display: block;
font-size: 10px;
}
</style>
<body>
<h1>captioner-js のデモでーす。</h1>
<img src="sakura.png"
width="600"
data-captioner-start-closed = "false"
role="caption"
data-captioner-type="animated"
title="桜と青空"
alt="さくら〜♪ さくら〜♪ さくら♪"
/>
</body>
</html>
スポンサーリンク