2 ms·
I really like Jeremy Keith's approach to "responsive javascript". He uses `:after` and updates the content property based on media queries. It keeps it nice and
by criswell 13y ago
I really like Jeremy Keith's approach to "responsive javascript". He uses `:after` and updates the content property based on media queries. It keeps it nice and DRY. Here's a small demo: http://jsbin.com/meqon/2/edit?css,js,output http://jsbin.com/meqon/2/edit?css,js,output
- kaishiro 13y agoYes! Was surprised this wasn't there and was happy to see someone toss it in the comments :) Edit: How he got there is a neat, quick read for anyone interested: http://adactio.com/journal/5429/ http://adactio.com/journal/5429/