Open henryjameslau opened 4 years ago
Make it like this to make it more concise
configheight:{small:50, medium:100} configmargins:{small:[0,20,0,20],medium:[0,40,0,40]}
var browserwidth = getwidth() //return small or medium or large depending on breakpoints height = configheight["browserwidth"] margin = configmargins["browserwidth"]
Make it like this to make it more concise
configheight:{small:50, medium:100} configmargins:{small:[0,20,0,20],medium:[0,40,0,40]}
var browserwidth = getwidth() //return small or medium or large depending on breakpoints height = configheight["browserwidth"] margin = configmargins["browserwidth"]