Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

wefiy/Follow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

Follow

Demo : http://liutian1937.github.io/Follow/

Javascript Follow Plugin

Js 跟随滚动效果插件
支持定义多个跟随ID,采用css fixed属性,不支持ie6,兼容其他主流浏览器。
支持定义滚动到底部的最小高度,不会覆盖底部
页面大小resize后,插件会自动重置参数

======= Js 跟随滚动效果插件

  1. 支持定义多个跟随ID,采用css fixed属性,不支持ie6,兼容其他主流浏览器。
  2. 支持定义滚动到底部的最小高度,不会覆盖底部
  3. 页面大小resize后,插件会自动重置参数

=======

使用方法

<script type="text/javascript" src="follow.js"></script>
window.onload = function(){
	var followIds = [document.getElementById("follow"),document.getElementById("follow2")];
	new Follow({
		obj:followIds,
		bottom:150
	});
}

About

Javascript Follow Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /