Skip to content

Commit 8e427ab

Browse files
committed
Merge pull request #249 from janpaepke/development-demo
Released 2.0.0
2 parents 5067f08 + 065b092 commit 8e427ab

File tree

179 files changed

+32871
-16404
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+32871
-16404
lines changed

.travis.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
language: node_js
22
node_js:
33
- "0.10"
4-
script: ./node_modules/karma/bin/karma start ./dev/tests/karma.conf.js --single-run
5-
before_install:
4+
script: node ./node_modules/gulp/bin/gulp travis-ci
5+
before_script:
66
- export CHROME_BIN=chromium-browser
77
- export DISPLAY=:99.0
88
- sh -e /etc/init.d/xvfb start
9-
before_script:
10-
- "node dev/build"
119
notifications:
1210
email: false

CHANGELOG.md

+68-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,65 @@
11
CHANGELOG
22
=========
33

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()`.
27+
28+
#### features:
29+
- **new plugin 'debug.addIndicators' (formerly 'jquery.scrollmagic.debug')**
30+
- 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+
463
## 1.3.0 (2014-11-13)
564

665
#### changes (potentially breaking):
@@ -11,6 +70,7 @@ CHANGELOG
1170
- fixed bubbling of pseudo-resize event of div containers
1271
- reference bug with AMD loading
1372

73+
1474
## 1.2.0 (2014-10-14)
1575

1676
#### features
@@ -37,7 +97,7 @@ CHANGELOG
3797
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.
3898
This means there will never be an `end` event triggered, which reflects the behaviour more accurately.
3999
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).
41101
- **removed method `startPosition()`**
42102
Method was marked deprecated since v1.0.7 and has now been replaced by `triggerPosition()`.
43103
The terms "_offset_" and "_position_" were used too randomly.
@@ -59,13 +119,13 @@ CHANGELOG
59119
All debug logging functionality was removed when using the minified version to save on filesize.
60120

61121
#### 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
69129
- docs: grouped methods for more clear arrangement
70130
- docs: various additions and clarifications
71131

0 commit comments

Comments
 (0)