jquery SVG html5炫酷的宇宙星球信息介绍效果



97 385 129



特效描述:jquerySVG html5炫酷的 宇宙星球信息介绍,

代码结构

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">
<!--
   ________         ___  __              __           _          
  /_  __/ /  ___   / _ \/ /__ ____  ___ / /____ _____(_)_ ____ _ 
   / / / _ \/ -_) / ___/ / _ `/ _ \/ -_) __/ _ `/ __/ / // /  ' \
  /_/ /_//_/\__/ /_/  /_/\_,_/_//_/\__/\__/\_,_/_/ /_/\_,_/_/_/_/
  An (HTML5 + CSS3 + SVG) x JS experiment
  Created by Little Workshop http://www.littleworkshop.fr
  * Libraries used: jQuery, Raphaël, RequireJS
  * Supported in Firefox 4, Chrome, Safari
  * Check out the source on GitHub: http://github.com/littleworkshop/planetarium
-->
<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">
	<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8">
	<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>The Planetarium</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://www.littleworkshop.fr/" 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://twitter.com/glecollinet/" 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://twitter.com/whatthefranck/" 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://www.steffmann.de/" target="_blank" title="Dieter Steffmann">Dieter Steffmann</a></li>
				<li class="carto">Franchise <br/><span>by</span> <a href="http://www.derekweathersbee.com/" target="_blank" title="Derek Weathersbee">Derek Weathersbee</a></li>
				<li class="carto">Bebas <br/><span>by</span> <a href="http://dharmatype.com/flat-it" target="_blank" title="Flat-it Type Foundry">Flat-it</a></li>
				<li class="carto">CartoGothic Std <br/><span>by</span> <a href="http://www.fontsite.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">DISTANCE FROM THE SUN</span><br />
			<span id="kilometers" class="bebas"></span>
		</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>
	<script data-main="main.min" src="js/require-jquery-1.4.4.min.js"></script>
</body>
</html>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动 滑块 滑动门 触屏滑动 滑动插件 滑块插件 滚动切换 滚动条切换 滑动选项卡 滑动切换 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 滑动手风琴 切换按钮 日期时间 时钟 日历 时间 日历插件 时间日期插件 表单 表单美化 表单插件 表单美化插件 时间轴 竖直时间轴 横向时间轴 图片滑动 图片滑块 图片切换 图片选项卡 图标选项卡 按钮控制

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到