次のコード スニペットは、CSS と JS を使用してポップアップを作成する方法を示しています。以前の作業方法を変更せずに、表示スタイルを変更してボックスをポップアップさせるだけで、開閉時にフェードさせる可能性はありますか?
function lightbox_open(){
window.scrollTo(100,500);
document.getElementById('light').style.display='block';
document.getElementById('fade').style.display='block';
}
function lightbox_close(){
document.getElementById('light').style.display='none';
document.getElementById('fade').style.display='none';
}