Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Да кажем,че целия сайт ти е в един див id=main_containerH_Kolev каза:Ами, фона ми е черен... първо искам да се вижда само фона и постепенно да се покаже и съдържанието. Opacity започва от 0.1 и плавно стига до 1.0![]()
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
</head>
<div id="main_container" style="display:none;">
<script>
$(document).ready(function() {
$("div#main_container").fadeIn();
});
</script>
.......
tuk koda na saita
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="bg" xml:lang="bg">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
<link rel="shortcut icon" href="/favicon.png" />
<title>Очаквайте скоро!</title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="bg" />
<link href="style.css" rel="stylesheet" type="text/css" />
<div id="container" style="display:none;">
<script>$("div#main_container").fadein();</script>
<img src="bg.png" />
</div>
</body>
<head>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="bg" xml:lang="bg">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
<link rel="shortcut icon" href="/favicon.png" />
<title>Очаквайте скоро!</title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="bg" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery.min.js"></script>
<div id="container" style="display:none;">
<script>
$(document).ready(function() {
$("div#main_container").fadein();
});
</script>
<img src="bg.png" />
</div>
</body>
<head>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="bg" xml:lang="bg">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
<link rel="shortcut icon" href="/favicon.png" />
<title>Очаквайте скоро!</title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="bg" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery.min.js"></script>
<div id="main_container" style="display:none;">
<script>
$(document).ready(function() {
$("div#main_container").fadeIn();
});
</script>
asdasdasd
</div>
</body>
<head>
</html>
Hous каза:във fadeIn() скобите можеш да сложиш примерно 2000 (за 2 секунди) защото ефекта е малко бърз според мен.