smooth_scroll 0.0.3 copy "smooth_scroll: ^0.0.3" to clipboard
smooth_scroll: ^0.0.3 copied to clipboard

discontinued
Dart 1 only

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
15
pub points
0%
popularity

Publisher

verified publishertenhobi.dev

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

animation

More

Packages that depend on smooth_scroll