Html5添加实用的仿Instagram头部固定跟随滚动特效插件教程
来源:互联网 发布:网络修图兼职 编辑:程序博客网 时间:2024/04/30 23:11
一、使用方法
<script src="js/jquery.min.js"></script>
<script src="js/feedify.min.js"></script>
二、Html结构
<div class="feedify">
<div class="feedify-item">
<div class="feedify-item-header">
This is the header of my item.
It will remain stuck to top while scrolling.
</div>
<div class="feedify-item-body">
This is the body of my item.
I can put whatever I want in here.
</div>
</div>
</div>
三、CSS样式
.feedify .feedify-item {
position: relative;
}
.feedify .feedify-item .feedify-item-header {
z-index: 100;
}
.feedify .feedify-item.fixed .feedify-item-header {
position: fixed;
top: 0;
}
.feedify .feedify-item.bottom .feedify-item-header {
position: absolute;
bottom: 0;
}
四、初始化插件
$(function() {
$('.feedify').feedify();
});
五、Feedify主题
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<link href="css/feedify.min.css" rel="stylesheet">
<link href="css/feedify-theme.min.css" rel="stylesheet">
注意:演示页面使用的是Thinlines图标。
KeyMob移动广告联盟专注于移动应用广告联盟,通过打造用户体验最好、更方便对移动营销广告进行高效的优化管理,为广告主提供精准的高质量的无线营销和应用推广服务。
<script src="js/jquery.min.js"></script>
<script src="js/feedify.min.js"></script>
二、Html结构
<div class="feedify">
<div class="feedify-item">
<div class="feedify-item-header">
This is the header of my item.
It will remain stuck to top while scrolling.
</div>
<div class="feedify-item-body">
This is the body of my item.
I can put whatever I want in here.
</div>
</div>
</div>
三、CSS样式
.feedify .feedify-item {
position: relative;
}
.feedify .feedify-item .feedify-item-header {
z-index: 100;
}
.feedify .feedify-item.fixed .feedify-item-header {
position: fixed;
top: 0;
}
.feedify .feedify-item.bottom .feedify-item-header {
position: absolute;
bottom: 0;
}
四、初始化插件
$(function() {
$('.feedify').feedify();
});
五、Feedify主题
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<link href="css/feedify.min.css" rel="stylesheet">
<link href="css/feedify-theme.min.css" rel="stylesheet">
注意:演示页面使用的是Thinlines图标。
KeyMob移动广告联盟专注于移动应用广告联盟,通过打造用户体验最好、更方便对移动营销广告进行高效的优化管理,为广告主提供精准的高质量的无线营销和应用推广服务。
0 0
- Html5添加实用的仿Instagram头部固定跟随滚动特效插件教程
- 导航菜单固定头部跟随屏幕滚动jQuery插件
- Html5添加实用的多层图片视觉差互动特效插件教程
- Html5添加超有趣的白云飘动特效插件教程
- Html5添加简单实用的轻量级评分插件教程
- Html5添加非常实用的手风琴插件教程
- Html5添加超级简洁实用的返回顶部插件教程
- Html5添加图片分类过滤特效插件教程
- Html5添加轻量级响应式打字机特效插件教程
- Html5添加SVG和Raphaël.js的混合图标动画特效插件教程
- Html5添加非常炫的图片3D背景视觉差特效插件教程
- Html5添加非常实用的可自动轮播的旋转木马插件教程
- 跟随滚动条漂浮的JS特效
- js雪花特效_跟随页面滚动的下雪特效
- AppbarLayout实现基本的头部跟随列表滚动效果
- 固定背景实现的背景滚动特效
- table的表头固定--上下滚动表头固定,左右滚动跟随滚动
- Html5添加三联切换仿3D效果旋转木马jQuery插件教程
- JMS教程(六)
- 图像增强—灰度拉伸
- 跨平台APP----对Native/Hybrid/Web APP三种开发模式的分析(系列一)
- Android的系统架构及组件
- hdoj538Ponds【dfs+拓扑排序】
- Html5添加实用的仿Instagram头部固定跟随滚动特效插件教程
- Eclipse 高亮显示选中的相同变量
- 你应该知道的RPC原理
- Android网络编程之URLConnection&HttpURLConnection
- session 失效 java.lang.IllegalStateException异常产生的原因及解决办法
- Redis 存储字符串和对象<转>
- 揭秘微信营销的十五个特点
- IOS第三方框架集合
- 常用DBA基本视图查询相关DB信息