この小さなビデオを作成しました (バックグラウンド ノイズがある場合は無視してください)
その 13 秒ですが、アニメーションが 5 秒で進行するのを見る必要があるだけです。(またはkeepyourlinks.comにアクセスして、同じボックスを表示してクリックできるようになるまで数秒待ちます)
css -アイテムには両方のクラスがあります-
.keepeos .top {
border-radius: 0.2em 0.2em 0.2em 0.2em;
color: #000066;
font-size: 40px;
height: 120%;
padding-bottom: 3px;
padding-top: 3px;
position: relative;
right: 10%;
top: -4px;
width: 120%;
}
.caja_con_sombra {
box-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}
そしてJavaScript(完全なスクリプトを投稿しましたが、私の意見では、関連する行のみにコメントしました.
<script type="text/javascript">
var variable;
function check_more(id){
var nID=$(".item_lista_links:first").attr("id"); //get the newest item's id
var tid= nID.replace('link', '');
$('#are_more').load('/includes/router.php?que=check_more&last='+tid+''); // check if newer
}
function buscar_nuevos(){
var nID=$(".item_lista_links:first").attr("id");
var id= nID.replace('link', '');
variable = setInterval('check_more('+id+')',15000); //start checking
}
function ver_nuevos(id){ // when found news and retrieving
clearInterval(variable);
$('#are_more').html(''); //clear div
/*THIS is basically the only relevant javascript line, i think */
$('#load_more').slideUp(100).load('/includes/router.php?que=load_more&last='+id+'',
function() {
variable = setInterval("check_more(139125)",15000);
$(this).slideDown(600); //start checking
return false;
});
}
</script>
では、この影が垂直方向のアニメーション全体を拡大するのを防ぐにはどうすればよいですか?