Skip to content

Commit

Permalink
writing: fix scrollmagic push follower bug janpaepke/ScrollMagic#983
Browse files Browse the repository at this point in the history
  • Loading branch information
JingkangZhang committed Mar 19, 2021
1 parent 434e1c0 commit a1fce8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions writings/new/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ body {
/* height: 800px; */
box-sizing: border-box;
background-color: blanchedalmond;
position: relative;
z-index: 10;
}

#menu {
Expand Down
6 changes: 4 additions & 2 deletions writings/new/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<script>
SCROLL_SCALE = 2;
TRIGGER_TURN_RED_TOP = 0 * SCROLL_SCALE;
TRIGGER_TURN_RED_TOP = 1;
TRIGGER_CHANGE_QUOTE_TOP = 200 * SCROLL_SCALE;
CHANGE_QUOTE_END = 300 * SCROLL_SCALE;
TRIGGER_INCAR_TEXT_TOP = 350 * SCROLL_SCALE;
Expand All @@ -68,7 +68,9 @@
})
// animate color and top border in relation to scroll position
.setTween("#sea-img", { opacity: 0 }) // the tween durtion can be omitted and defaults to 1
.setPin("#opening-pin")
.setPin("#opening-pin", {
pushFollowers: true
})
.addIndicators({ name: "1 " }) // add indicators (requires plugin)
.addTo(controller);

Expand Down

0 comments on commit a1fce8e

Please sign in to comment.