This repository was archived by the owner on Mar 25, 2018. It is now read-only.
Releases: oyvindhermansen/scrollzy
Releases · oyvindhermansen/scrollzy
Release list
Major - v2.0.1
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
speedandeventTypesince 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
speedandeventTypesince 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
Changed to MIT License
New option
You can now add "easing" as an option. If not set, it returns the value of "linear".
New usage of importing scrollzy
UPDATED: When importing scrollzy in your js-file, use: import { scrollzy } from 'scrollzy'. This is also updated in the readme-file.
Added error handlers
Refactored with ES6 class and added error handlers with understandable error messages.