Skip to content

Commit 1f317e4

Browse files
Updated component to version 2.0.0
1 parent 2ddd06f commit 1f317e4

File tree

7 files changed

+455
-205
lines changed

7 files changed

+455
-205
lines changed

RELEASE-NOTES.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
### Version 2.0.0 - June 30, 2015
2+
3+
- **Visibility** - Using `.visibility({ type: 'fixed'})` will now automatically add a placeholder element which will swap places with an element when it is attached to the viewport. This should make fixed content drastically simpler.
4+
- **Visibility** - Visibility and sticky now use a more performant [pub/sub pattern](http://davidwalsh.name/pubsub-javascript) that will only attach a single event to context `scroll`.
5+
- **Visibility** - Added two new visibility callbacks `onOnScreen` and `onOffScreen`, which occur, most obviously when an element first appears in or out of a browser's viewport.
6+
- **Transition** - Transition will no longer force visible/hidden with inline styles if `onComplete` callback sets visibility.
7+
- **Visibility/Sticky** - Visibility and sticky now refresh automatically after page content loading to deal with changes in position from images loading
8+
- **Visibility/Sticky** - Visibility now uses pub/sub pattern to greatly improve scroll performance when attaching multiple events
9+
- **Visibility** - Visiblity includes a new setting `checkOnRefresh` which detemrines whether visibility callbacks should occur on resize or refresh
10+
- **Visibility** - Visibility `image` will now wait to lazy load images that are *above* the current screen position, not just below.
11+
- **Visibility** - In returned `calculations` object, `visible` and `hidden` are renamed to `onScreen` and `offScreen`, since this describes more accurately what the value represents.
12+
113
### Version 1.12.0 - April 13, 2015
214

315
- **Visibility** - Adds updated visibility module from `2.x` channel. Visibility will automatically refresh by default after images load on page refresh. Fixes issues with element positions after image loading.
@@ -17,4 +29,8 @@
1729

1830
- **Transition** - Transition will now keep block position of elements hidden with visibility hidden
1931

32+
### Version 0.7.0 - Oct 22, 2013
33+
34+
- **Transition** - onShow and onHide callbacks for visibility changing transitions
35+
2036
### Version 0.1.0 - Sep 25, 2013

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
"framework"
1616
],
1717
"license": "MIT",
18-
"version": "1.12.3"
18+
"version": "2.0.0"
1919
}

0 commit comments

Comments
 (0)