All Projects → Promo → Scrollissimo

Promo / Scrollissimo

Javascript plugin for smooth scroll-controlled animations

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Scrollissimo

Moveto
A lightweight scroll animation javascript library without any dependency
Stars: ✭ 2,746 (+1616.25%)
Mutual labels:  scrolling, smooth-scrolling, smooth
smoovy
A collection of small and useful js packages (smooth scrolling, utils, etc.) preventing copy & paste
Stars: ✭ 25 (-84.37%)
Mutual labels:  tween, smooth-scrolling, smooth
Scroll Into View If Needed
Element.scrollIntoView ponyfills for things like "if-needed" and "smooth"
Stars: ✭ 811 (+406.88%)
Mutual labels:  scrolling, smooth-scrolling, smooth
really-smooth-scroll
A script that smoothen scrolling in the browser
Stars: ✭ 21 (-86.87%)
Mutual labels:  scrolling, smooth-scrolling
Horizontal Scroll
Horizontal scroll with inertia
Stars: ✭ 175 (+9.38%)
Mutual labels:  scrolling, smooth
Jump.js
A modern smooth scrolling library.
Stars: ✭ 3,459 (+2061.88%)
Mutual labels:  scrolling, smooth
React Scroll To
Scroll to a position in React
Stars: ✭ 348 (+117.5%)
Mutual labels:  scrolling, smooth-scrolling
Smoothscrollanimations
Demo of a tutorial on how to add smooth page scrolling with an inner image animation
Stars: ✭ 238 (+48.75%)
Mutual labels:  scrolling, smooth-scrolling
Mac Mouse Fix
Mac Mouse Fix - A simple way to make your mouse better.
Stars: ✭ 362 (+126.25%)
Mutual labels:  scrolling, smooth-scrolling
Sweet Scroll
🍭 ECMAScript2015+ & TypeScript Friendly, dependency-free smooth scroll library.
Stars: ✭ 380 (+137.5%)
Mutual labels:  scrolling, smooth-scrolling
Mos
一个用于在 macOS 上平滑你的鼠标滚动效果或单独设置滚动方向的小工具, 让你的滚轮爽如触控板 | A lightweight tool used to smooth scrolling and set scroll direction independently for your mouse on macOS
Stars: ✭ 7,772 (+4757.5%)
Mutual labels:  smooth-scrolling, smooth
Ngx Scroll To
Scroll to any element to enhance scroll-based features in you app. Works for Angular 4+, both AoT and SSR. No dependencies.
Stars: ✭ 269 (+68.13%)
Mutual labels:  scrolling, smooth-scrolling
Ngx Scrollbar
Custom overlay-scrollbars with native scrolling mechanism
Stars: ✭ 355 (+121.88%)
Mutual labels:  smooth-scrolling, smooth
Scroll Behavior Polyfill
A polyfill for the 'scroll-behavior' CSS-property
Stars: ✭ 76 (-52.5%)
Mutual labels:  smooth-scrolling, smooth
Easy Scroll
A lightweight native javascript library to perform smooth scrolling with animation
Stars: ✭ 96 (-40%)
Mutual labels:  scrolling, smooth-scrolling
React Smooth Scroll Hook
A React Hook for using smooth scroll in React Component
Stars: ✭ 114 (-28.75%)
Mutual labels:  smooth-scrolling
React Virtual
⚛️ Hooks for virtualizing scrollable elements in React
Stars: ✭ 2,369 (+1380.63%)
Mutual labels:  scrolling
Iframework
Simple Unity Framework
Stars: ✭ 110 (-31.25%)
Mutual labels:  tween
Rolly
Custom scroll with inertia, smooth parallax and scenes manager
Stars: ✭ 109 (-31.87%)
Mutual labels:  smooth-scrolling
Ngx Ui Scroll
Infinite/virtual scroll for Angular
Stars: ✭ 145 (-9.37%)
Mutual labels:  scrolling

Scrollissimo

Build Status

Javascript plugin for smooth scroll-controlled animations

Scrollissimo animates Greensock's tweens and timelines on user's scroll.

Comparing Scrollissimo and another usual plugins here.

Get started

Download

Scrollissimo is available for downloading from repository. Also npm users can install Scrollissimo by command:

npm install scrollissimo

Connect

The first step you need is to include Greensock:

    <script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenLite.min.js"></script>
    <script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TimelineLite.min.js"></script>
    <script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/CSSPlugin.min.js"></script>

... or just:

    <script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script>

... and Scrollissimo of course:

    <script src="scrollissimo/dist/scrollissimo.min.js"></script>

Next we will trigger scrollissimo on each scroll event:

<script>
    $(document).ready(function(){
        $(window).scroll(function(){
            scrollissimo.knock();
        });
    });
</script>

NOTE: for touch devices support you must also attach scrollissimo.touch.min.js.

Now lets animate something!

Let we have a div called Divy:

<div id="Divy"></div>
#Divy{
    position: fixed;
    top: 0;
    left: 0;
    
    height: 50px;
    width: 50px;
    
    background: red;
}

Now we will animate Divy's width. At the begining of page its width will be equal to 50px. And as we scroll its width will be grow up to 300px after we have scrolled for 1000 pixels. The first let's create Grensock's tween.

TweenLite.to(element:object, durationInPixels: number, params: object);

more in Greensock`s documentation

var divyTween = TweenLite.to(document.getElementById('Divy'), 1000, { width: 300 });

NOTE: As you see it`s usual Greensock`s Tween except of duration of animation ***must be specified in pixels not in seconds.

Then we need to add this tween to Scrollissimo.

scrollissimo.add(<Tween|Timeline>, <StartPixels>, <MaxSpeed>);

The second argument is start scroll value in pixels. The third argument is a maximal value of changing scrollTop.

scrollissimo.add(divyTween, 0, 25);

That is all you need to do to make a simple animation.

Animating timelines is similar to tween`s animating.

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].