http://www.lifechurch.org.uk/new-here/about/ http://www.lifechurch.org.uk/media/blog/
これに似たリンク効果を作りたい
私は以下を見つけました:
$(document).ready(function() {
$("#button").click(function(){
$(".target").effect( "bounce",
{times:3}, 300 );
});
});
ライブラリを使用していると言われましたが、これをどこから入手できるのでしょうか?
ありがとうカースティ
アップデート
バウンスしたいクラスでリンクをラッピングしてみた
<!doctype html>
<html>
<head><title>jQuery example</title></head>
<body>
<a href="#" id="button">Click me</a>
<div class="target">I will bounce</div>
<div class="target">I will bounce too, since I have the same class name</div>
<br>
<br>
<br>
<a href="#" id="button"><div class="target">Click me</div></a>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
// Notice the .on instead of .click, it's the new style for events
// in jQuery and the e argument
$("#button").on('click', function (e) {
e.preventDefault();
$(".target").effect( "bounce", { times : 3 }, 300);
});
});
</script>
</body>
そして、それは矛盾していますか。再作成したい上記の例を見たかどうかはわかりません。しかし、リンクである H1 ヘッダーはわずかに「バウンス」またはインデントされています。これは、Wordpress ブログのリンク ヘッダーで再現したい効果です。
ありがとう