smooth_scroll 0.0.3

discontinued unlisted Dart 2 incompatible

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

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.

0
likes
0
pub points
0%
popularity

Publisher

tenhobi.dev

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

Repository (GitHub)
View/report issues

More

Packages that depend on smooth_scroll