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



78 310 104



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



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


热门标签: 瀑布流 收藏 预览 自适应页面大小 响应式区块列表布局 摇摆 烟花 清单样式 照相机 注释 下划线 结构图 鼠标悬停 条形码 弹幕 画板 朋友圈样式 红包 css绘制样式 支付 图文布局 滑动导航菜单 导航切换 图片头像上传 文字标签 二维码 滑动选项卡切换 文件上传 彩色文字 地图 图片滑动 图片切换 文本框 文字闪烁 计算器 文字滑动 文字切换 下拉框 打字机 计时器 滑动手风琴 背景切换 复选 文字列表 桌面 滑动星星打分 手风琴 单选 跳转 文字弹幕 选项卡自动切换 登录框 步骤 文字高亮 视频切换 注册框 键盘 列表切换 搜索框 签到 验证码 分享 渐隐切换 二级联动 点赞 投票 全屏切换 三级联动 雪花 切换按钮 城市选择 打印 缩放切换 value赋值 筛选 答题 按钮控制 购物车 震动 颜色选择 表单提交 全选/反选 图表 添加删除 鼠标滑过 添加标签 抽奖 密码强度验证 表情 表单验证 qq空间 头像截图 html5按钮动画 星星打分评分 按钮样式 密码修改设置 编辑器 播放器 电子杂志 排行榜 分页翻页 排序 表格隔行变色 table表格 进度条 多功能 文字叠加 滑动滑过 滚动切换 滑动选项卡切换 文字拖动 文字提示框 文字收缩展开 文字放大缩小 文字翻转旋转 文字淡出淡进 文字全屏 文字延迟加载 360全景 html5文字动画 文字滚动 文字滑动 文字切换 选项卡切换 滑动手风琴 滑动星星打分 图片文字 文字导航菜单 切换按钮 form表单 文字 其他更多

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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