Hamburger change size at runtime,


#1

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.
          alert(screenWidth);
          if(screenWidth < 510)
            {
              HamburgerHome.size = 'small';
            }
            };

Cheers

Steve Warby


#2

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

Hamburger1_button.style.fontSize="60px"