Mark L. Reyes

Importing CSS Breakpoints Into Javascript

A quick and easy solution to this problem is to have your JS import the breakpoints directly from the CSS values in the DOM. This solution brings the current breakpoint variable into your JS in a way that’s:


See Lullabot article, Importing CSS Breakpoints Into Javascript

Exit mobile version