• Stars
    star
    209
  • Rank 188,325 (Top 4 %)
  • Language
    HTML
  • License
    MIT License
  • Created almost 12 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Smooth scrolling in all browsers

simplr-smoothscroll

DEMO

Requirements

jquery-mousewheel

Usage

$(function () {
  $.srSmoothscroll({
    // defaults
    step: 55,
    speed: 400,
    ease: 'swing',
    target: $('body'),
    container: $(window)
  })
})

Enable scrolling for specific widgets

See this example

<div id="container1">
  <div id="widget1">
    <p>lorem ipsum</p>
  </div>
</div>
<div id="container2">
  <div id="widget2">
    <p>lorem ipsum</p>
  </div>
</div>
#container1 { width: 500px; height: 300px; overflow: auto; }
#container2 { width: 500px; height: 300px; overflow: auto; }
$(function () {
  $.srSmoothscroll({
    target: $('#widget1'),
    container: $('#container1')
  })
  $.srSmoothscroll({
    target: $('#widget2'),
    container: $('#container2')
  })
})

Browser and os detection

Browsers that support smooth scrolling natively may be excluded.

$(function () {
  var platform = navigator.platform.toLowerCase();
  if (platform.indexOf('win') == 0 || platform.indexOf('linux') == 0) {
    if ($.browser.webkit) {
      $.srSmoothscroll();
    }
  }
});

This will enable simplr-smoothscroll only for webkit browsers on windows and linux.

More Repositories

1

grant

OAuth Proxy
JavaScript
3,925
star
2

slugify

Slugifies a string
JavaScript
1,346
star
3

express-admin

MySQL, MariaDB, PostgreSQL, SQLite admin for Node.js
JavaScript
1,148
star
4

markdown-viewer

Markdown Viewer / Browser Extension
JavaScript
853
star
5

purest

REST API Client Library
JavaScript
537
star
6

screenshot-capture

Screenshot Capture / Browser Extension
JavaScript
158
star
7

request-compose

Composable HTTP Client
JavaScript
88
star
8

express-admin-examples

Express Admin Examples
JavaScript
74
star
9

stars

GitHub Stars History and Stats
JavaScript
45
star
10

native-messaging

Native Messaging Host Protocol for Browser Extensions
JavaScript
44
star
11

chrome-webstore

Google Chrome Web Store HTTP Client
JavaScript
35
star
12

deep-copy

Deep copy objects and arrays
JavaScript
35
star
13

styler

Styler / Browser Extension
JavaScript
22
star
14

fastify-grant

Fastify plugin for Grant OAuth Proxy
JavaScript
22
star
15

async-harmony

Asynchronous Harmonies
JavaScript
18
star
16

grant-aws

AWS Lambda handler for Grant
HCL
13
star
17

purest-providers

REST API provider configuration for the Purest module
JavaScript
10
star
18

oauth-like-a-boss

Once And For All
JavaScript
9
star
19

grant-profile

User profile middleware for Grant
JavaScript
8
star
20

xsql

SQL Query Builder
JavaScript
8
star
21

markdown-syntax

Markdown Syntax examples for Markdown Viewer
8
star
22

stocktwits

StockTwits API wrapper
JavaScript
7
star
23

recursive-fs

Asynchronous recursive file system operations
JavaScript
7
star
24

grant-vercel

Vercel Serverless Function handler for Grant
Makefile
7
star
25

simov.github.io

My place on the WWW! Oh man!
JavaScript
6
star
26

wallhaven-client

wallhaven.cc HTTP Client
JavaScript
5
star
27

loca

WebKit reporter for Mocha
JavaScript
5
star
28

mysql-validator

MySql data type validation
JavaScript
4
star
29

grant-types

3
star
30

grant-oidc

OpenID Connect middleware for Grant
JavaScript
3
star
31

grant-session

JavaScript
2
star
32

grant-gcloud

Google Cloud Function handler for Grant
HCL
2
star
33

hapi-hogan

Hogan.js templating in Hapi.js
JavaScript
2
star
34

facebook-refresh-token

Refresh Facebook OAuth Access Token
JavaScript
2
star
35

request-oauth

OAuth 1.0a support for request-compose
JavaScript
2
star
36

sr-pagination

Simple pagination generator
JavaScript
2
star
37

riotjs-examples

RiotJS Examples
JavaScript
2
star
38

grant-azure

Azure Function handler for Grant
Makefile
2
star
39

request-logs

HTTP debug logs for request-compose
JavaScript
2
star
40

express-admin-tests

Express Admin Tests
JavaScript
1
star
41

electron-socket

JavaScript
1
star
42

lure

Lure people to your public organization
JavaScript
1
star
43

simplr-fade

jQuery Slider Plugin
JavaScript
1
star
44

request-multipart

Multipart body support for request-compose
JavaScript
1
star
45

slack-incoming-facebook

Slack Incoming WebHook for Facebook
JavaScript
1
star
46

rubinho

RubyGems visualization tool
JavaScript
1
star
47

ansi-webkit

Print ANSI escaped colors in a browser console
JavaScript
1
star
48

matrix

JavaScript
1
star
49

http-headers

Caseless HTTP Headers
JavaScript
1
star
50

passport-stocktwits

Stocktwits authentication strategy for Passport and Node.js
JavaScript
1
star
51

template

Node Module Template
1
star
52

bulk-stream

A stream that emits multiple other streams and chunks one after another
JavaScript
1
star
53

browserside-organic

Organic development in the browser.
JavaScript
1
star
54

http-fetch

HTTP Client for the Browser
JavaScript
1
star
55

markdown-themes

Themes for Markdown Viewer / Browser Extension
CSS
1
star
56

grant-wiki

1
star
57

invites

Public invites for Slack and GitHub
JavaScript
1
star