Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
/ smooth_scroll Public archive

Dart library for smooth scroll effect on a web page

License

Notifications You must be signed in to change notification settings

tenhobi/smooth_scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smooth_scroll

A Dart library for smooth scroll effect on a web page.

Usage

A simple usage example:

import 'dart:html';
import 'package:smooth_scroll/smooth_scroll.dart';

  main() {
    new SmoothScroll('.button');
  }

More advanced solution:

import 'dart:html';
import 'package:smooth_scroll/smooth_scroll.dart';

  main() {
    new SmoothScroll('.button', duration: 1500, diff: -50);
  }

Solution with animation library for change animation style:

import 'dart:html';
import 'package:smooth_scroll/smooth_scroll.dart';

  main() {
    new SmoothScroll('.button', duration: 2000, easing: Easing.Easing.CUBIC_EASY_IN_OUT);
  }

Features

  • Simple and quick smooth scroll via the SmoothScroll() object.
  • Fully configurable.

License

This library is licensed under MIT.

About

Dart library for smooth scroll effect on a web page

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages