socialite.js を使用してソーシャル ボタンの遅延読み込み効果を作成しています。
CSS
/*
* Socialite Look-a-like defaults
*/
.cf:after {
visibility: hidden;
display: block;
font-size: 0;
content:" ";
clear: both;
height: 0;
}
* html .cf {
zoom: 1;
}
*:first-child+html .cf {
zoom: 1;
}
/* visually hidden from HTML5 Boilerplate */
.vhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.social-buttons {
display: block;
list-style: none;
padding: 0;
margin: 00px;
}
.social-buttons > li {
display: block;
margin: 0;
padding: 00px;
float: left;
}
.social-buttons .socialite {
display: block;
position: relative;
background: url('https://lh4.googleusercontent.com/-4P_Yq4L-QXM/UTHWS6CDigI/AAAAAAAAGrU/t4K0HmWUv2U/s194/socialshare.png') 0 0 no-repeat;
}
.social-buttons .socialite-loaded {
background: none !important;
}
.social-buttons .twitter-share {
width: 83px;
height: 45px;
background-position: -145px 0;
}
.social-buttons .googleplus-one {
width: 65px;
height: 45px;
background-position: -75px 0;
}
.social-buttons .facebook-like {
width: 77px;
height: 45px;
background-position: 0 0;
}
.social-buttons .linkedin-share {
width: 59px;
height: 25px;
background-position: -215px 0;
}
</style>
私はかなりの数のcssトリックを試しましたが、無駄でした.jqueryについてはあまり知識がありませんが、socialite.jsを調べたところ、高さアフターホバーに関連するものは何も見つかりませんでした.後で要素の位置を同じ場所にするトリックはありますか。どうもありがとう。