Jump to content
Search Community

How to scroll the page down when you scale(.5) the app ScrollSmooth Plugins

Chousse test
Moderator Tag

Recommended Posts

Hi,

I've developped a 4K app (on desktop touch windows) BUT the screen is finally an HD so I don't want to rebuild the entire app in HD. So I basiclly apply a scale(0.5) on the main container (same on the body). it work perfectly except for the scrollsmoother, it keep the 4K height. How I can fix that ?

thanks

Link to comment
Share on other sites

It's tough to troubleshoot without a minimal demo, but when you just apply a transform (scale) to an element, that doesn't change anything about the actual layout geometry, so it'd make sense that the overall size of the container would remain the same. My guess is that you could set overflow: hidden on the content <div>, and explicitly set the height/width to be half of their normal width/height. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...