Treat an element as if its the viewport for css. Making media queries work without an iframe.
var mf = new mediafaker({
// The target element as a selector or dom referrence
element: '.stage',
});
Currently Media Faker removes all media queries in any active stylesheet, soon this will be configurable.
This is a pretty obscure library so Why use this? MediaFaker was created for use in documentation for a component library. Allowing users to see how the component works at different viewport sizes without having to resize their browser.
See the examples folder for examples
Running bootstrap media queries inside a resizable div without using an Iframe
MIT