Comparing version 2.2.0 to 2.2.1
@@ -9,3 +9,3 @@ export = scrollama; | ||
export type ScrollamaOptions = { | ||
step: HTMLElement | string; | ||
step: HTMLElement[] | string; | ||
progress?: boolean; | ||
@@ -47,2 +47,2 @@ offset?: DecimalType; | ||
} | ||
} | ||
} |
{ | ||
"name": "scrollama", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Lightweight scrollytelling library using IntersectionObserver", | ||
@@ -5,0 +5,0 @@ "main": "build/scrollama.js", |
@@ -10,2 +10,4 @@ ###### scrollama.js | ||
**Current version**: 2.2.0 | ||
#### Important Changes | ||
@@ -40,3 +42,4 @@ | ||
- [Sticky Graphic (Overlay)](https://russellgoldenberg.github.io/scrollama/sticky-overlay) - | ||
using CSS `position: sticky;` to create a fixed graphic with fullscreen graphic with text overlayed. | ||
using CSS `position: sticky;` to create a fixed graphic with fullscreen graphic with text overlayed. - [Mobile Pattern](https://russellgoldenberg.github.io/scrollama/mobile-pattern) - | ||
using pixels instead of percent for offset value so it doesn't jump around on scroll direction change | ||
@@ -113,3 +116,3 @@ ### Installation | ||
- `step` (string): Selector (or array of elements) for the step elements that will trigger changes. | ||
- `step` (string | HTMLElement[]): Selector (or array of elements) for the step elements that will trigger changes. | ||
**required** | ||
@@ -226,2 +229,3 @@ - `offset` (number 0 - 1, or string with "px"): How far from the top of the viewport to trigger a step. **(default: 0.5) (middle of screen)** | ||
- [smnarnold](https://github.com/smnarnold) | ||
- [tuckergordon](https://github.com/tuckergordon) | ||
@@ -232,3 +236,3 @@ ### License | ||
Copyright (c) 2019 Russell Goldenberg | ||
Copyright (c) 2020 Russell Goldenberg | ||
@@ -235,0 +239,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of |
388960
1400
250