All Projects → aholachek → scrollbounce

aholachek / scrollbounce

Licence: other
Add a subtle bounce effect on mobile when the user scrolls (WIP)

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to scrollbounce

vue-scroll-progress
🎉 Page scroll progress bar component for @vuejs
Stars: ✭ 96 (+464.71%)
Mutual labels:  scroll
simple-scrollspy
Simple scrollspy without jQuery, no dependencies
Stars: ✭ 53 (+211.76%)
Mutual labels:  scroll
scrolltotop
Scroll To Top extension for Chrome, Firefox, Safari, Opera.
Stars: ✭ 60 (+252.94%)
Mutual labels:  scroll
react-scroll-trigger
📜 React component that monitors scroll events to trigger callbacks when it enters, exits and progresses through the viewport. All callback include the progress and velocity of the scrolling, in the event you want to manipulate stuff based on those values.
Stars: ✭ 126 (+641.18%)
Mutual labels:  scroll
NoobScroll
A lightweight jQuery Plugin that add some cool function to make scrolling more fun [Archive]
Stars: ✭ 43 (+152.94%)
Mutual labels:  scroll
gestures
A library for normalized events and gesture for desktop and mobile.
Stars: ✭ 31 (+82.35%)
Mutual labels:  mobile-web
react-use-scroll-position
A react hook to use scroll position
Stars: ✭ 45 (+164.71%)
Mutual labels:  scroll
really-smooth-scroll
A script that smoothen scrolling in the browser
Stars: ✭ 21 (+23.53%)
Mutual labels:  scroll
editor-ovo
A rich text editor for mobile web. Mixed editing of photos and Emoji 一个适用于移动web的富文本编辑器。照片加emoji的混合编辑
Stars: ✭ 29 (+70.59%)
Mutual labels:  mobile-web
seamless-scroll-polyfill
Scroll Behavior polyfill
Stars: ✭ 134 (+688.24%)
Mutual labels:  scroll
onscroll-effect
A tiny JavaScript library to enable CSS animations when user scrolls.
Stars: ✭ 35 (+105.88%)
Mutual labels:  scroll
anim-event
Event Manager for Animation
Stars: ✭ 25 (+47.06%)
Mutual labels:  scroll
react-smart-scroll
Efficient rendering of long lists in React
Stars: ✭ 27 (+58.82%)
Mutual labels:  scroll
vue-scroll-snap
A super simple Vue component that allows fullscreen and horizontal scroll snapping.
Stars: ✭ 25 (+47.06%)
Mutual labels:  scroll
use-smooth-scroll
React hook which gives a smooth scrolling function.
Stars: ✭ 41 (+141.18%)
Mutual labels:  scroll
vue-scrollwatch
scrollspy
Stars: ✭ 59 (+247.06%)
Mutual labels:  scroll
vue-scroll-lock
一个 VUE 组件:子元素 scroll 父元素容器不跟随滚动(兼容PC、移动端)
Stars: ✭ 31 (+82.35%)
Mutual labels:  scroll
scrollpup.js
Minimal beautiful bar to show scroll progress. Pure Javascript Plugin.MIT
Stars: ✭ 83 (+388.24%)
Mutual labels:  scroll
vue-scrollin
🎰 Scroll-in text component for Vue
Stars: ✭ 61 (+258.82%)
Mutual labels:  scroll
react-scrolling-color-background
background with color transitioning as you scroll, declarative and easy to setup
Stars: ✭ 53 (+211.76%)
Mutual labels:  scroll

scrollbounce

Minified & Gzipped size npm version

scroll example

Live demo on CodeSandbox

Quickstart

npm install scrollbounce

or

yarn add scrollbounce

1. Give animated elements unique data-bounce-id attributes:

<ul>
  <li data-bounce-id="1"></li>
  <li data-bounce-id="2"></li>
  <li data-bounce-id="3"></li>
</ul>

2. Init the animation:

import bounce from 'scrollbounce'

const stopBounce = bounce()

// if you want to remove the effect later:
stopBounce()

Options

The default effect is pretty subtle. To crank it up you can pass in an effectMultiplier option.

bounce({ effectMultiplier: 3 })

Coming soon

  • Improved edge case handling
  • Performance optimizations
  • More spring customization
  • Support horizontal scroll

Details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].