You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+68-8
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,65 @@
1
1
CHANGELOG
2
2
=========
3
3
4
+
## 2.0.0 (2015-02-26)
5
+
6
+
#### changes (non-breaking)
7
+
-**removal of all dependencies (jQuery & GSAP) – _ScrollMagic is now stand-alone._**
8
+
- new file structure:
9
+
- main module: 'ScrollMagic.js'
10
+
- all available plugins in folder '/plugins'
11
+
- new scene event: [add](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Scene.html#event:add) fires when scene is added to a controller
12
+
- new scene event: [remove](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Scene.html#event:remove) fires when scene is removed from a controller
13
+
- option changes in `Scene.addIndicators()`:
14
+
- indicators are now always on top (option `zindex` removed)
15
+
- option `suffix` is renamed to `name`
16
+
- several performance tweaks
17
+
- lots more info and warning messages (in the uncompressed development version)
18
+
19
+
#### changes (potentially breaking):
20
+
- ScrollMagic Controllers are now instantiated using `var controller = new ScrollMagic.Controller();`
21
+
- ScrollMagic Scenes are now instantiated using `var scene = new ScrollMagic.Scene();`
22
+
- renamed method `Scene.parent()` to `Scene.controller()`
23
+
-**removed scene method `triggerOffset()`**
24
+
Method was marked deprecated since v1.1.0 and has now been replaced by `triggerPosition()`.
25
+
-**removed `Scene.setPin()` option `pinClass`**
26
+
Was used to add a class to the pinned element. The same can now be achieved using `setClassToggle()`.
- indicators can now be added to the scene before it was added to a controller
31
+
- indicators also work when scenes are removed and readded
32
+
- indicator labels are autoindexed, when no explicit label is supplied
33
+
- new controller option 'addIndicators', when a controller is initialized using `new ScrollMagic.Controller({addIndicators: true})` all added scenes will automatically have indicators added to them
34
+
- start indicator is now above the line for less overlays (i.e. one scene starts, where another ends)
35
+
- huge performance optimization, especially when using indicators for multiple scenes
36
+
- new method `removeIndicators()`
37
+
-**new plugin 'animation.gsap'**
38
+
- Contains all GSAP tween functionality formerly integrated into ScrollMagic (`setTween()` and `removeTween()`)
39
+
- new feature for shorthand TweenMax.to() animation using `setTween(target, duration, parameters)` or `setTween(target, parameters)`
40
+
-**new plugin 'animation.velocity'**
41
+
The velocity animation framework can now be used to trigger animations using `Scene.setVelocity(target, properties, options)`
42
+
Note that for the time being velocity only works with 0 duration scenes, because timeline scrubbing isnt supported by velocity (yet).
43
+
-**new plugin 'jquery.ScrollMagic'**
44
+
- adds support for jQuery selectors and makes all methods accept jQuery objects as element parameters.
45
+
- moves ScrollMagic global to `$.ScrollMagic`. To instantiate a controller respectively call `new $.ScrollMagic.Controller()`.
46
+
-**new option for responsive duration**
47
+
The Scene duration can now be a percentage string like `"100%"`.
48
+
It will be calculated in relation to the size of the scroll container. It use the container's height for vertically scrolling applications and its width for horizontally scrolling containers.
49
+
50
+
#### bugfixes:
51
+
- vertical Pins in DIV scroll containers did not work, when using a mousewheel while the cursor was over the pinned element
52
+
- using `removeTween(true)` to remove and reset a Tween didn't work when the scene's duration was 0
53
+
- when removing pins from cascaded pins using `removePin(true)` messed up the DOM structure (long term bug)
54
+
- when pinning absolutely positioned elements using `bottom` or `right`, the positioning was off (See issue [226](https://github.com/janpaepke/ScrollMagic/issues/226))
55
+
56
+
#### project management:
57
+
- changed build system to [gulp](http://gulpjs.com/)[see here](CONTRIBUTING.md#development-contribution)
58
+
- moved all Module dist files to '/scrollmagic' [see here](scrollmagic)
59
+
- published scrollmagic on npm as `scrollmagic`
60
+
- renamed package on bower from `ScrollMagic` to `scrollmagic` to adhere to naming conventions
61
+
62
+
4
63
## 1.3.0 (2014-11-13)
5
64
6
65
#### changes (potentially breaking):
@@ -11,6 +70,7 @@ CHANGELOG
11
70
- fixed bubbling of pseudo-resize event of div containers
12
71
- reference bug with AMD loading
13
72
73
+
14
74
## 1.2.0 (2014-10-14)
15
75
16
76
#### features
@@ -37,7 +97,7 @@ CHANGELOG
37
97
The event logic for zero duration scenes has been changed: From now on a zero duration scene will trigger `enter`, `start`, `progress` (in this order) when scrolling forward past the trigger point and `progress`, `start`, `leave` when scrolling in reverse.
38
98
This means there will never be an `end` event triggered, which reflects the behaviour more accurately.
39
99
Furthemore this affects the scene's possible states, which can now only be `"BEFORE"` and `"DURING"` for zero duration scenes.
40
-
To learn more, read [this issue](https://github.com/janpaepke/ScrollMagic/issues/141#issuecomment-53549776) or [this documentation](http://janpaepke.github.io/ScrollMagic/docs/ScrollScene.html#progress).
100
+
To learn more, read [this issue](https://github.com/janpaepke/ScrollMagic/issues/141#issuecomment-53549776) or [this documentation](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Scene.html#progress).
41
101
-**removed method `startPosition()`**
42
102
Method was marked deprecated since v1.0.7 and has now been replaced by `triggerPosition()`.
43
103
The terms "_offset_" and "_position_" were used too randomly.
@@ -59,13 +119,13 @@ CHANGELOG
59
119
All debug logging functionality was removed when using the minified version to save on filesize.
60
120
61
121
#### features:
62
-
- new controller method: [scrollTo](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.html#scrollTo)
63
-
- new controller method: [scrollPos](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.html#scrollPos)
64
-
- new scene method: [refresh](http://janpaepke.github.io/ScrollMagic/docs/ScrollScene.html#refresh)
65
-
- new scene method: [setClassToggle](http://janpaepke.github.io/ScrollMagic/docs/ScrollScene.html#setClassToggle), [removeClassToggle](http://janpaepke.github.io/ScrollMagic/docs/ScrollScene.html#removeClassToggle) respectively
66
-
- new scene event: [shift](http://janpaepke.github.io/ScrollMagic/docs/ScrollScene.html#event:shift) fires when scene position changes
67
-
- new scene event: [destroy](http://janpaepke.github.io/ScrollMagic/docs/ScrollScene.html#event:destroy) fires when scene is destroyed
68
-
- extended scene option [duration](http://janpaepke.github.io/ScrollMagic/docs/ScrollScene.html#duration) to support dynamic updates in responsive layouts
122
+
- new controller method: [scrollTo](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Controller.html#scrollTo)
123
+
- new controller method: [scrollPos](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Controller.html#scrollPos)
124
+
- new scene method: [refresh](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Scene.html#refresh)
125
+
- new scene method: [setClassToggle](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Scene.html#setClassToggle), [removeClassToggle](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Scene.html#removeClassToggle) respectively
126
+
- new scene event: [shift](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Scene.html#event:shift) fires when scene position changes
127
+
- new scene event: [destroy](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Scene.html#event:destroy) fires when scene is destroyed
128
+
- extended scene option [duration](http://janpaepke.github.io/ScrollMagic/docs/ScrollMagic.Scene.html#duration) to support dynamic updates in responsive layouts
69
129
- docs: grouped methods for more clear arrangement
0 commit comments