Hamburger change size at runtime,

What is the correct syntax to do this.

I need to change the size depending on the screen width

function sizeChanges(){
// check the screen size and make some changes for mobile / desktop etc.
          if(screenWidth < 510)
              HamburgerHome.size = 'small';


Steve Warby

It’s a character, so increasing the fontsize of the button itself will do it:"60px"