Jump to content
Search Community

Search the Community

Showing results for tags 'scrollbars'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Hi, I'm sliding panels in from outside the viewport using gsap.from() and my layout is taking up 100% of the browser window. When I side a panel in from the right it increases the width of the page, however the page width remains the same when slid in from the left. I'd like the panels to slide in without increasing the width of the page? What am I missing? Code pasted below: Thanks! let window_current_width = window.innerWidth; // left side works fine gsap.from("#home-latest-dev .wp-block-media-text__media", { scrollTrigger: "#home-latest-dev", x: -window_current_width, duration:2, ease:"sine", opacity:1, }); // right side increases width of window, which is causing problems gsap.from("#home-latest-dev .wp-block-media-text__content", { scrollTrigger: "#home-latest-dev", x: +window_current_width, duration:2, ease:"sine", opacity:1, });
×
×
  • Create New...