まだデータがありません。
マウスオーバー・クリックでシャドウアニメ効果を「Shadow animation」
当ページのリンクには広告が含まれています。
スポンサーリンク
マウスオーバー・クリックでシャドウアニメ効果を実装するプラグイン「Shadow animation」を紹介します。
jQueryプラグイン「Shadow animation」
このプラグインを使えば、指定した要素にマウスオーバー(あるいはクリック)すると、その要素にカラーの影がアニメ効果付きで、ふんわり登場します。
オプションでカラーや影の具合いを設定することができます。
スポンサーリンク
デモでは、マウスオーバー・クリックの両方を紹介しています。
デモのソース(HTML + jQuery)
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name="description" content="Shadow animationのデモでーす。">
<title>Shadow animation - jQueryまとめのカルマ</title>
<link href="demo.css" rel="stylesheet">
</head>
<body>
<h1>Shadow animationのデモでーす。</h1>
<div id="box1" onmouseover="jQuery(this).stop().animate({boxShadow: '0 0 30px #44f'})" onmouseout="jQuery(this).stop().animate({boxShadow: '0 0 10px #000'})">マウスオーバー</div>
<div id="box2" onmousedown="jQuery(this).stop().animate({boxShadow: '3px 3px 3px', top: 3}, 'fast')" onmouseup="jQuery(this).stop().animate({boxShadow: '10px 10px 15px', top: 0}, 'fast')">クリック!</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>
jQuery.noConflict();
</script>
<script src="jquery.animate-shadow-min.js"></script>
</body>
</html>
jsファイルのダウンロード、オプションなど、その他の詳細はこちらからどうぞ。
» Shadow animation
スポンサーリンク