Created
April 1, 2013 07:25
-
-
Save baobao/0557040e67728f2eff70 to your computer and use it in GitHub Desktop.
jqueryを使ったDOMのテスト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
var scene1 = "<img src='assets/scene1.png' />"; | |
$("#content").append("<div id='scene'></div>"); | |
//非表示 | |
$("#scene").css("visibility", "hidden"); | |
//シーン追加 | |
$("#scene").html(scene1) ; | |
//シーンの初期化 | |
$("#scene").css("opacity",0); | |
//表示 | |
$("#scene").css("visibility", "visible"); | |
$("#scene").animate({ | |
opacity: 1 | |
}, 3000 ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment