利用jQuery實現metro扁平UI網頁組件特效



47 185 62



特效描述:利用jQuery實現 metro扁平UI 網頁組件,利用jQuery實現metro扁平UI網頁組件特效

代碼結構

1. 引入CSS

<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" type="text/css" href="css/slider.css" />
<link type="text/css" rel="stylesheet" href="css/JFAlert.css" />

2. 引入JS

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/fliplightbox.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.min.js"></script>
<script type="text/javascript" src="js/jquery.mixitup.min.js"></script>
<script type="text/javascript" src="js/modernizr.custom.28468.js"></script>
<script type="text/javascript" src="js/jquery.cslider.js"></script>
<script type="text/javascript" src="js/JFCore.js"></script>
<script src="js/jquery.starRating.js"></script>

3. HTML代碼

<div class="wrap">
	<div class="span_of_2"><!-- start span_of_2 -->
		<div class="span1_of_1"><!-- start span1_of_1 -->
			<div class="container"><!-- start container -->
						<ul id="filters" class="clearfix">
							<li><span class="filter active" data-filter="app card icon web">All</span></li>
							<li><span class="filter" data-filter="logo  web">Photography</span></li>
							<li><span class="filter" data-filter="app card icon web">Inspirations</span></li>
							<li><span class="filter" data-filter="logo  web">Icon</span></li>
						</ul>
						<div id="portfoliolist">
							<div class="portfolio logo1" data-cat="logo">
								<div class="portfolio-wrapper">
									<a href="#"> <img src="images/s1.jpg"  alt="Image 1" /> </a>
									<div class="label_style">
										<a href="#"><span class="icon_1"></span></a>
										<div class="label_text">
											<h2>scarabaeidae</h2>
											<p>Rezonum & Collections</p>
										</div>
									</div>
								</div>
							</div>
							<div class="portfolio app left" data-cat="app">
								<div class="portfolio-wrapper">
									<a href="#"> <img src="images/s2.jpg"  alt="Image 2" /> </a>
									<div class="label_style">
										<a href="#"><span class="icon_2"></span></a>
										<div class="label_text">
											<h2>scarabaeidae</h2>
											<p>Rezonum & Collections</p>
										</div>
									</div>
								</div>
							</div>
							<div class="portfolio web" data-cat="web">
								<div class="portfolio-wrapper">
									<a href="#"> <img src="images/s3.jpg"  alt="Image 3" /> </a>
									<div class="label_style">
										<a href="#"><span class="icon_3"></span></a>
										<div class="label_text">
											<h2>scarabaeidae</h2>
											<p>Rezonum & Collections</p>
											<form>
												<input type="button" value="buy it now" />
											</form>
										</div>
									</div>
								</div>
							</div>
							<div class="portfolio card left" data-cat="card">
								<div class="portfolio-wrapper">
									<a href="#"> <img src="images/s4.jpg"  alt="Image 4" /> </a>
									<div class="label_style">
										<a href="#"><span class="icon_4"></span></a>
										<div class="label_text">
											<h2>scarabaeidae</h2>
											<p>Rezonum & Collections</p>
											<form>
												<input type="button" class="bg" value="buy it now" />
											</form>
										</div>
									</div>
								</div>
							</div>
						</div>
			</div><!-- end container -->
			<div class="span_btm">
				<img src="images/pic1.jpg" alt=""/>
				<div class="span_text">
					<h3>ios games / slots</h3>
					<p>Written by <a href="#">eiusmod tempor incididunt</a> </p>
					<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
					<p>Contrary to popular belief, Lorem Ipsum is not simply random text.</p>
					<form>
						<span><input type="button" class="bg" value="like it now" /> </span>
						<span><input type="button" class="bg1" value="learn more" /> </span>
						<div class="clear"></div>
						<span class="or">or</span>
					</form>
				</div>
			</div>
		</div><!-- end span1_of_1 -->
		<div class="span1_of_2"><!-- start span1_of_2 -->
			<div class="slider"><!-- start slider -->
				<div id="da-slider" class="da-slider">
						<div class="da-slide">
							<h2>Flat Design websites</h2>
							<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p>
						</div>
						<div class="da-slide">
							<h2>Clean & Flat Design</h2>
							<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p>
						</div>
						<div class="da-slide">
							<h2>Clean & Flat Design</h2>
							<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
						</div>
						<div class="da-slide">
							<h2>Flat Design websites</h2>
							<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
						</div>
						<nav class="da-arrows">
							<span class="da-arrows-prev"></span>
							<span class="da-arrows-next"></span>
						</nav>
				</div>
			</div><!-- end slider -->
			<div class="grids_of_2">
				<div class="grid1_of_1">
					<div class="temparature">
						<h4 class="left">4<sup>o</sup>c</h4>
						<span class="right bg"></span>
						<div class="clear"></div>
					</div>
					<div class="temp_list_main">
						<div class="temp_main">
							<ul class="temp_list">
								<li><span class="temp_img"><img src="images/temp1.jpg" alt=""/></span><span class="temp_text"><h4>Mon</h4><h5>30<sup>o</sup></h5></span><div class="clear"></div></li>
							</ul>
							<ul class="temp_list_icon">
								<li><i class="icon_1"></i></li>
							</ul>
							<div class="clear"></div>
						</div>
						<div class="temp_main top">
							<ul class="temp_list">
								<li><span class="temp_img"><img src="images/temp2.jpg" alt=""/></span><span class="temp_text"><h4>Thu</h4><h5>27<sup>o</sup></h5></span><div class="clear"></div></li>
							</ul>
							<ul class="temp_list_icon">
								<li><i class="icon_2"></i></li>
							</ul>
							<div class="clear"></div>
						</div>
					</div>
				</div>
				<div class="grid1_of_2">
					<form>
						<input type="button" value="button one" class="bg1" />
						<input type="button" value="button two" class="bg2" />
						<input type="button" value="button three" class="bg3" />
						<div class="clear"></div>
					</form>
					<ul class="list">
						<li><a href="#">summer</a> </li>
						<li><a href="#">hot</a> </li>
						<li><a href="#">party</a> </li>
						<li><a href="#">musical</a> </li>
					</ul>
					<ul class="soc_icons">
						<li><a href="#" class="bg1">facebook <i class="icon_1"></i></a></li>
						<li><a href="#" class="bg2">twitter <i class="icon_2"></i></a></li>
						<li><a href="#" class="bg3">dribbble <i class="icon_3"></i></a></li>
					</ul>
					<div class="span_list">
						<div class="span_list_img">
							<img src="images/user1.jpg" alt=""/>
						</div>
						<div class="span_list_text">
							<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour</p>
							<fieldset class="star-rating" data-evaluated="wdw_3" data-stars="5" data-value="2" >
							</fieldset>			
							        <script src="js/jquery.starRating.js"></script>				
						</div>
						<div class="clear"></div>
					</div>
				</div>
				<div class="clear"></div>
			</div>
			<div class="grids_of_2 top">
				<div class="grid1_of_1">
					<div class="feeds">
						<h4>twiiter feeds</h4>
						<span class="refresh_b"><a class="refresh" href="#"></a></span>
						<div class="feeds_list">
							<div class="feeds_main">
								<div class="feeds_img">
									<img src="images/user2.jpg" alt="" />
								</div>
								<div class="feeds_text">
									<span><a href="#">Theme</a> is following you.</span>
								</div>
								<div class="clear"></div>
							</div>
							<div class="feeds_main">
								<div class="feeds_img">
									<img src="images/user3.jpg" alt="" />
								</div>
								<div class="feeds_text">
									<span><a href="#">There are many</a> Lorem Ipsum is simply dummy text of the printing.</span>
								</div>
								<div class="clear"></div>
							</div>
							<div class="feeds_main">
								<div class="feeds_img">
									<img src="images/user4.jpg" alt="" />
								</div>
								<div class="feeds_text">
									<span><a href="#">There are many lipsum</a> is following you.</span>
								</div>
								<div class="clear"></div>
							</div>
						</div>
					</div>
				</div>
				<div class="grid1_of_2">
					<div class="clouds_storage">
						<h4 class="left">clouds storage</h4>
						<span class="right bg"></span>
						<div class="clear"></div>
					</div>
						<ul class="cloud_list">
							<li><a href="#"><i class="icon_1"></i><span>unlimited space</span></a> </li>
							<li><a href="#"><i class="icon_1"></i><span> 1 month history </span></a> </li>
							<li class="active"><a href="#"><i class="icon_1"></i><span> 500 gb of space </span></a> </li>
							<li><a href="#"><i class="icon_1"></i><span> premium sources </span></a> </li>
							<li><a href="#"><span class="right">free 30 days trail</span></a></li>
							<div class="clear"></div>
						</ul>
				</div>
				<div class="clear"></div>
			</div>
			<div class="main_alert"><!-- alert style-1 -->
				<div class="grid_8">
					<div class="message alert style-1 rounded">
						<span><i class="icon_1"></i>Lorem Ipsum is simply<p class="hide"> dummy text of the printing</p></span><a href="#" class="close fade">x</a>
					</div>
				</div>
				<div class="grid_8">
					<div class="success alert style-1 rounded">
						<span><i class="icon_2"></i>There are many <p class="hide">variations of passages of Lorem ipsum</p></span><a href="#" class="close slide">x</a>
					</div>
				</div>
				<div class="grid_8">
					<div class="error alert style-1 rounded">
						<span><i class="icon_3"></i>The standard chunk <p class="hide">of Lorem Ipsum</p></span><a href="#" class="close fade-slide">x</a>
					</div>
  				</div>
			</div>			
		</div><!-- end span1_of_2 -->
		<div class="clear"></div>
		<div class="copy"><!-- start copy -->
		</div>
	</div><!-- end span_of_2 -->
</div>



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


熱門標簽: 文字疊加 文字層疊 文字提示框 提示文字 文字收縮展開 文字收縮 文字展開 文字放大縮小 文字縮放 文字大小 文字放大 文字縮小 文字變大 文字變小 滑動 滑塊 滑動門 觸屏滑動 滑動插件 滑塊插件 文字翻轉 文字旋轉 文字淡出淡進 文字淡出 文字淡進 文字全屏 文字延遲加載 文字延遲 文字加載 文字拖動 文字拖拽 滾動切換 滾動條切換 滑動選項卡 滑動切換 360全景 360度全景 h5文字動畫 h5文字邊框動畫 html5文字動畫 html5文字邊框動畫 文字滾動 文字無縫滾動 文字間歇滾動 文字滑動 文字滑塊 文字切換 文字選項卡 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 滑動手風琴 滑動星星打分 圖片文字 文字導航菜單 文字導航 文字菜單 切換按鈕 表單 表單美化 表單插件 表單美化插件 文字 文字插件 其他 鼠標懸停 文字標簽 文字標簽云 標簽云 文字滑動 文字滑塊 文字切換 文字選項卡 按鈕控制 添加刪除
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

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

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

老夫子电子