Advertisement
Guest User

Untitled

a guest
May 21st, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.               if (normalized.pixelY > 0) {
  2.                     if (this.scroll + normalized.pixelY > this.$refs.contentWork[0].offsetHeight - window.innerHeight) {
  3.                         this.scroll = this.$refs.contentWork[0].offsetHeight - window.innerHeight
  4.                         TweenLite.to('.content-work', 0.5, {
  5.                             y: -this.scroll
  6.                         })
  7.                         TweenLite.to('.content-next-project', 0.5, {
  8.                             y: this.scroll
  9.                         })
  10.                     } else {
  11.                         this.scroll += Math.floor((normalized.pixelY))
  12.                         TweenLite.to('.content-work', .5, {
  13.                             y: -this.scroll
  14.                         })
  15.                         TweenLite.to('.content-next-project', .5, {
  16.                             y: this.scroll
  17.                         })
  18.                     }
  19.                 } else {
  20.                     if (this.scroll + normalized.pixelY < 0) {
  21.                         this.scroll = 0
  22.                         TweenLite.to('.content-work', 0.5, {
  23.                             y: -this.scroll
  24.                         })
  25.                          TweenLite.to('.content-next-project', 0.5, {
  26.                             y: this.scroll
  27.                         })
  28.                     } else {
  29.                         this.scroll += Math.floor((normalized.pixelY))
  30.                         TweenLite.to('.content-work', .5, {
  31.                             y: -this.scroll
  32.                         })
  33.                          TweenLite.to('.content-next-project', 0.5, {
  34.                             y: this.scroll
  35.                         })
  36.                     }
  37.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement