利用jQuery實現宇宙星球信息介紹特效



44 172 58



特效描述:利用jQuery實現 宇宙星球 信息介紹,利用jQuery實現宇宙星球信息介紹特效

代碼結構

1. 引入CSS

<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8">
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8">

2. 引入JS

<script data-main="main.min" src="js/require-jquery-1.4.4.min.js"></script>
<script data-main="main.min" src="js/require-jquery-1.4.4.min.js"></script>

3. HTML代碼

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=800">
	<style>html {overflow: hidden;}</style>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<style>
		.hidden { display:none; }
		#spinner {position:absolute;left:50%;top:50%;margin-left:-25px;margin-top:-25px;height:50px;width:50px;background:url('img/spinner.gif') no-repeat;}
	</style>
	<title></title>
</head>
<body class="system">
	<div id="starfield">
	</div>
	<div id="spinner"></div>
	<img id="glow" src="img/glow.png">
	<div id="title">
		<h1 class="franchise"><span class="marketing">The</span>Planetarium</h1>
		<span id="subtitle" class="carto">An HTML5 Astronomical Adventure</span>
	</div>
	<div id="instructions" class="carto loading">
		click on a planet to start
	</div>
	<div id="toggle-credits" class="loading">
		<span class="marketing">view credits</span>
	</div>
	<section id="credits">
		<span id="madeby" class="carto">Made on Earth by <a href="http://51qianduan.com/" target="_blank" title="Visit Little Workshop">Little Workshop</a></span>
		<div id="door">
			<div></div>
			<div></div>			
		</div>
		<div id="doorlight">
			<div></div>
			<div></div>			
		</div>
		<div id="authors">
			<p id="guillaume">
				<span class="marketing">design by</span>
				<span class="bebas">Guillaume Lecollinet</span>
				<span class="carto"><a target="_blank" href="http://51qianduan.com/" title="follow Guillaume on Twitter">@glecollinet</a></span>								
			</p>
			<p id="franck">
				<span class="marketing">code by</span>
				<span class="bebas">Franck Lecollinet</span>
				<span class="carto"><a target="_blank" href="http://51qianduan.com/" title="follow Franck on Twitter">@whatthefranck</a></span>
			</p>
		</div>
		<section id="typefaces">
			<header>
				<span class="separator"></span>
				<span id="title-hr" class="marketing">typefaces</span>
				<span class="separator"></span>
			</header>
			<ul>
				<li class="carto">Marketing Script <br/><span>by</span> <a href="http://51qianduan.com/" target="_blank" title="Dieter Steffmann">Dieter Steffmann</a></li>
				<li class="carto">Franchise <br/><span>by</span> <a href="http://51qianduan.com/" target="_blank" title="Derek Weathersbee">Derek Weathersbee</a></li>
				<li class="carto">Bebas <br/><span>by</span> <a href="http://51qianduan.com" target="_blank" title="Flat-it Type Foundry">Flat-it</a></li>
				<li class="carto">CartoGothic Std <br/><span>by</span> <a href="http://51qianduan.com/" target="_blank" title="FontSite Inc.">FontSite Inc.</a></li>												
			</ul>
		</section>
	</section>
	<ul id="planets" class="loading">
		<li id="mercury" class="planet"></li>
		<li id="venus" class="planet"></li>
		<li id="earth" class="planet"></li>
		<li id="mars" class="planet"></li>
		<li id="jupiter" class="planet"></li>	
		<li id="saturn" class="planet"></li>
		<li id="uranus" class="planet"></li>
		<li id="neptune" class="planet"></li>
	</ul>
	<div id="gui" class="shrink">
		<div id="container"></div>
		<div id="ruler">
		</div>
		<div id="counter">
			<span class="carto"></span><br />
		</div>
		<div id="back">
			<span class="carto">Back to space</span>
		</div>
		<div id="moveleft">
			<div id="previous">				
				<img src="img/previous.svg" type="image/svg+xml" alt="Previous planet">
			</div>
		</div>
		<div id="moveright">
			<div id="next">		
				<img src="img/previous.svg" type="image/svg+xml" alt="Next planet">
			</div>
		</div>
		<section class="content hidden" id="mercury-info">
			<article id="mercury-window" class="window">
				<div class="reflect">
					<h1 class="bebas">
						Mercury
					</h1>
					<p class="carto">is the first planet from the Sun and is also the smallest and densest planet of the Solar System. Mercury has yet to be entirely mapped, making it the least known planet in our system.</p>
				</div>			
			</article>
			<div id="mercury-missions">
				<h2 class="bebas">Mercury Observation Progress</h2>
				<ul>
					<li><img src="img/mercuryobs1.png" alt=""></li>
					<li><img src="img/mercuryobs2.png" alt=""></li>
					<li><img src="img/mercuryobs3.png" alt=""></li>
				</ul>
				<img id="mariner10" src="img/mariner10.png" alt="">
				<img id="techarrow" src="img/30years.png" alt="">
				<img id="messenger" src="img/messenger.png" alt="">					
			</div>
		</section>
		<section class="content hidden" id="venus-info">
			<article id="venus-window" class="window">
				<div class="reflect">
					<h1 class="bebas">
						Venus
					</h1>
					<p>is the second planet from the Sun and is often called Earth's sister due to its many similarities with the Blue Planet. However, a strong greenhouse effect gives Venus the hottest climate in the Solar System.</p>
				</div>			
			</article>
			<ul id="venus-atmosphere" class="bebas">
				<li>65 KM
					<span>-100°C</span>
					<span>Sulfuric Acid Cloud Layers</span>
				</li>
				<li>50 KM
					<span>0°C</span>
					<span>Sulfuric Acid Haze</span>
				</li>
				<li>38 KM
					<span>25°C</span>						
					<span>Troposphere</span>
				</li>
				<li>0 KM
					<span>467°C</span>						
					<span>Surface Level</span>
				</li>
			</ul>
		</section>
		<section class="content hidden" id="earth-info">
			<article id="earth-window" class="window">
				<div class="reflect">
					<h1 class="bebas">
						Earth
					</h1>
					<p>is the third planet from the Sun, and the densest and fifth-largest of the eight planets in the Solar System. Sometimes referred to as the Blue Planet, Earth is the only known planet to harbor life.</p>
				</div>			
			</article>
			<div id="earth-moon" class="grid moon">
				<img id="distance" src="img/distance.png" alt="">
			</div>
			<ul id="earth-facts" class="properties bebas">
				<li class="mass">
					<img src="img/mass.svg" alt="mass">
					5.9736 <small>x</small> 10<span class="exposant">24</span> kg
					<span>That's 80 times the mass of the moon</span>
				</li>
				<li class="perimeter">
					<img src="img/perimeter.svg" alt="perimeter">
					40,075,16 km
					<span>Equatorial circumference</span>
				</li>
				<li class="revolution">
					<img src="img/revolution.svg" alt="revolution">
					365 days
					<span>Complete Orbital Period</span>
				</li>
				<li class="temperature">
					<img src="img/temperature.svg" alt="temperature">
					-89.2&deg;C to 57.8&deg;C
					<span>Temperature range</span>
				</li>
			</ul>
		</section>
		<section class="content hidden" id="mars-info">
			<article id="mars-window" class="window">
				<div class="reflect">
					<h1 class="bebas">
						Mars
					</h1>
					<p>is the fourth planet from the Sun. Named after the Roman god of war, Mars is often described as the "Red Planet" and is the site of Olympus Mons, the highest known mountain in the Solar System.</p>
				</div>			
			</article>
			<ul id="volcanoes" class="bebas">
				<li>Olympus Mons<span>27,000 KM</span><hr /></li>
				<li>Mount Everest<span>8,848 KM</span><hr /></li>
				<li>Mount Fuji<span>3,776 KM</span><hr /></li>
			</ul>
		</section>
		<section class="content hidden" id="jupiter-info">
			<article id="jupiter-window" class="window">
				<div class="reflect">
					<h1 class="bebas">
						Jupiter
					</h1>
					<p> is the fifth planet from the Sun and is the largest planet of the Solar System. Jupiter has 63 known satellites, the biggest of which are called the four Galilean Moons : Io, Europa, Ganymede and Callisto.</p>
				</div>			
			</article>				
			<ul id="jupiter-moons" class="properties bebas">
				<li><img src="img/iopicto.png" alt="">
					IO
					<span>Land of Volcanoes</span>
				</li>
				<li><img src="img/europapicto.png" alt="">
					EUROPA
					<span>Ice Ice Baby</span>
				</li>
				<li><img src="img/ganymedepicto.png" alt="">
					GANYMEDE
					<span>Larger than Mercury</span>	
				</li>
				<li><img src="img/callistopicto.png" alt="">
					CALLISTO
					<span>The Habitable Moon ?</span>	
				</li>															
			</ul>
			<div id="galilean-moons" class="grid bebas"></div>
		</section>
		<section class="content hidden" id="saturn-info">
			<article id="saturn-window" class="window">
				<div class="reflect">
					<h1 class="bebas">
						Saturn
					</h1>
					<p>is the sixth planet from the Sun and is the second largest planet in our system. Despite its size (9.4 Earths), Saturn's density is so low that it would float on water if there was a large enough ocean.</p>
				</div>			
			</article>
			<div id="rings-origin">
				<h2 class="bebas">The origin of Saturn's rings</h2>
				<p class="carto">Almost entirely composed of water ice,<br />Saturn's rings are believed to<br />be the remains of a<br />former moon.</p>
				<ul id="arrows" class="bebas">
					<li><span>1</span>
						<img class="saturnarrow" src="img/saturn-arrow1.png" alt="">
						<img class="rings" src="img/rings1.png" alt="">							
						</li>
					<li><span>2</span>
						<img class="saturnarrow" src="img/saturn-arrow2.png" alt="">
						<img class="rings" src="img/rings2.png" alt="">							
						</li>
					<li><span>3</span>
						<img class="saturnarrow" src="img/saturn-arrow3.png" alt="">
						<img class="rings" src="img/rings3.png" alt="">							
						</li>												
				</ul>
			</div>
		</section>
		<section class="content hidden" id="uranus-info">
			<article id="uranus-window" class="window">
				<div class="reflect">
					<h1 class="bebas">
						Uranus
					</h1>
					<p>is the seventh planet from the Sun and is the coldest in the Solar System. Altough the first pictures taken by Voyager 2 showed a featureless, pale-blue planet, astronomers later discovered the complex atmosphere of Uranus.</p>
				</div>			
			</article>
			<div id="axial-tilt" class="grid">
				<h2 class="bebas">Axial Tilt</h2>
				<img src="img/tilt.png" alt="">
				<span class="bebas">98°</span>					
			</div>				
			<div id="uranus-atmosphere">
				<h2 class="bebas">The atmosphere of uranus</h2>
				<div id="hydrogen">
					<div></div>
					<div></div>
					<div></div>
					<span class="bebas">85.3%<br />
						Hydrogen
					</span>						
				</div>
				<div id="helium">
					<div></div>
					<div></div>
					<div></div>
					<span class="bebas">15.3%<br />
						Helium
					</span>						
				</div>
				<div id="methane">
					<div></div>
					<div></div>
					<div></div>
					<span class="bebas">2.3%<br />
						Methane
					</span>
				</div>
				<div id="deuteride">
					<div></div>
					<div></div>
					<div></div>
					<span class="bebas">0.01%<br />
						Hydrogen Deuteride
					</span>
				</div>
			</div>
		</section>
		<section class="content hidden" id="neptune-info">
			<article id="neptune-window" class="window">
				<div class="reflect">
					<h1 class="bebas">
						Neptune
					</h1>
					<p>is the eighth and farthest planet from the sun. Neptune has been approached only once by a man-made object, Voyager 2 space probe, in 1989. Most of our knowledge of Neptune comes from this first and only flyby.</p>
				</div>			
			</article>
			<ul id="neptune-facts" class="bebas">
				<li><img src="img/wind.png" alt="">
					2100 <span>km/h</span>
					<br />
					<span class="carto">max wind speed</span>
				</li>
				<li><img src="img/satellite.png" alt="">
					13 <span>known satellites</span>
					<br />
					<span class="carto">and counting</span>
				</li>
				<li><img src="img/time.png" alt="">
					164 <span>earth years</span>
					<br />
					<span class="carto">per neptunian year</span>
				</li>
			</ul>
			<div id="flyby">
				<img src="img/earthicon.png" alt="">
				<img src="img/246min.png" alt="">
				<img id="voyager2" src="img/voyager2.png" alt="Voyager 2">
			</div>
		</section>
	</div>
	<div id="counters"></div>
</body>
</html>



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 文字疊加 文字層疊 圖片放大鏡 圖片疊加 圖片層疊 圖片翻轉 圖片旋轉 圖片拖動 圖片拖拽 圖片延遲加載 圖片延遲 圖片加載 圖片淡出淡進 圖片淡出 圖片淡進 圖片全屏 二維碼 頭像上傳 圖片上傳 文字淡出淡進 文字淡出 文字淡進 地圖 中國地圖 世界地圖 文字放大縮小 文字縮放 文字大小 文字放大 文字縮小 文字變大 文字變小 圖片放大縮小 圖片縮放 圖片大小 圖片放大 圖片縮小 圖片變大 圖片變小 帶縮略圖的幻燈片 文字收縮展開 文字收縮 文字展開 文字翻轉 文字旋轉 h5圖片動畫 h5圖標動畫 html5圖片動畫 html5圖標動畫 文字全屏 文字延遲加載 文字延遲 文字加載 滾動切換 滾動條切換 文字提示框 提示文字 文字拖動 文字拖拽 滑動選項卡 滑動切換 圖片廣告 圖片滾動 圖片滾動條 360全景 360度全景 圖片收縮展開 圖片收縮 圖片展開 h5文字動畫 h5文字邊框動畫 html5文字動畫 html5文字邊框動畫 純圖片輪播 圖片輪播 圖片滑動 圖片滑塊 旋轉木馬 圖片旋轉木馬 文字旋轉木馬 旋轉木馬插件 圖片切換 圖片選項卡 圖標選項卡 文字滑動 文字滑塊 文字滾動 文字無縫滾動 文字間歇滾動 圖標導航 圖標菜單 自動滾動圖片輪播 文字切換 文字選項卡 滑動手風琴 背景切換 大圖切換 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 手風琴 水平手風琴 垂直手風琴 圖片手風琴 文字手風琴 手風琴插件 文字導航菜單 文字導航 文字菜單 圖片文字 切換按鈕 表單 表單美化 表單插件 表單美化插件 圖表 文字 文字插件 圖片 圖片插件 頭像截圖 文字標簽 文字標簽云 標簽云 全屏切換 響應式圖片 按鈕控制
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

加群請備注:從官網了解到

老夫子电子