Skip to content
This repository was archived by the owner on Mar 25, 2018. It is now read-only.

Releases: oyvindhermansen/scrollzy

Major - v2.0.1

Choose a tag to compare

@oyvindhermansen oyvindhermansen released this 27 Feb 20:32

It was about time to refactor this little package with some ES6 sugar!

These are the changes in this major release:

Importing is now made with default instead of named import/export. Makes more sense too, because it's only one module to load

import scrollzy from 'scrollzy';
  • The error messages have also improved to be more concise. I'm not checking every type anymore, because the only thing that really needs to be checked is speed and eventType since these wouldnt work without the correct type.
  • Doing some destructuring on the options now, instead of defining the whole object.
  • Just setting the default value on speed and eventType since these needs default values to work when not specifying the options.
  • Removed the option of easing, since i've got no good solutions for it. (help pls x))

Hope you guys enjoy!

If you find any bugs or something broke during installs or whatever, please file an issue, or make a PR with the fix! 🥂

Package is now MIT license

Choose a tag to compare

@oyvindhermansen oyvindhermansen released this 01 Apr 06:22

Changed to MIT License

New option

Choose a tag to compare

@oyvindhermansen oyvindhermansen released this 01 Apr 05:23

You can now add "easing" as an option. If not set, it returns the value of "linear".

New usage of importing scrollzy

Choose a tag to compare

@oyvindhermansen oyvindhermansen released this 31 Mar 19:43

UPDATED: When importing scrollzy in your js-file, use: import { scrollzy } from 'scrollzy'. This is also updated in the readme-file.

Added error handlers

Choose a tag to compare

@oyvindhermansen oyvindhermansen released this 31 Mar 19:13

Refactored with ES6 class and added error handlers with understandable error messages.