利用jQuery实现metro扁平UI网页组件特效



42 166 56



特效描述:利用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

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