ページ上の特定のポイントに到達すると、要素の表示をなしからブロックに変更するスクロールtoスクリプトを使用しています。
フェードインを適用したり、表示を変更したり、アニメーションGIFを読み込んだりする方法はありますか?
これが私のコードです
window.onscroll = function()
{
if( window.XMLHttpRequest ) {
if (document.documentElement.scrollTop > 454 || self.pageYOffset > 454) {
$('logosmall').style.position = 'fixed';
$('logosmall').style.top = '0';
$('logosmall').style.padding = '10px';
$('logosmall').style.display = 'block';
} else if (document.documentElement.scrollTop < 454 || self.pageYOffset < 454) {
$('logosmall').style.position = 'absolute';
$('logosmall').style.top = '454px';
$('logosmall').style.display = 'none';
}
}
}