いやーユニクロのサイトがリニューアルされて相変わらずかっこいい!!
その画像のロールオーバーのアニメーションがなんかかっこよかったんで真似してみたww
$(document).ready(function(){
//---------------------------------
var $target=$("img.move");
var idx=0;
$target.css({"left":-688});
var w=$("div.imageBox").width();
//
$("div.imageBox").hover(
function(){
idx=$(this).index();
$target.eq(idx).css({"left":-688});
$target.eq(idx).stop().animate({"left":-w+"px"},400,"easeInOutExpo");
},
function(){
$target.eq(idx).stop().animate({"left":w+"px"},400,"easeInOutExpo");
}
);
});
コメントを投稿するにはログインしてください。