3 ms·
Intention.js: Rewrites your HTML based on the user's context.
- mildweed 13y agoAllows you to do two things: * change around attributes on tags, usually src, href or class * move HTML elements around the page Based on whatever you want (Context.js): * Window width * touch capabilities * pixel ratio * [code your own here]
- drivebyacct2 13y agoIs this more appropriate than doing the same thing in CSS/@media?
- everyplace 13y agoIt goes way beyond what css and media queries can do. Imagine writing a media query for a slow-connection, large, high-resolution device in portrait mode, for a repeat, paid visitor, that moved the physical location of DOM elements as a result of the query.
- joe8756438 13y agoWhat's "appropriate" depends entirely on what you are doing. Intention.js gives you really fine tuned control over how an element responds to different contexts, be it a width threshold, interaction mode, display resolution, could even use scroll depth or number of user's visits to the site.