[{"snippet": "...Without setting the display of the b4de2a49c8SVG8c94a2ed4b to none, and even though its contents are not rendered on the page, the b4de2a49c8SVG8c94a2ed4b will still take up space in the page, resulting in a big empty area. In order to avoid that, we\u2019re hiding the b4de2a49c8SVG8c94a2ed4b entirely with CSS.\n\nNow, suppose we have a Twitter icon in the icons folder. twitter.b4de2a49c8svg8c94a2ed4b might look something like this:\n\n<!-- twitter.b4de2a49c8svg8c94a2ed4b -->\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE b4de2a49c8svg8c94a2ed4b PUBLIC \"-//W3C//DTD b4de2a49c8SVG8c94a2ed4b 1.1//EN\" \"http://www.w3.org/Graphics/b4de2a49c8SVG8c94a2ed4b/1.1/DTD/b4de2a49c8svg118c94a2ed4b.dtd\">\n<b4de2a49c8svg8c94a2ed4b version=\"1.1...", "rank": -5.7008999077306175, "title": "An Overview of SVG Sprite Creation Techniques", "url": "https://24ways.org/2014/an-overview-of-svg-sprite-creation-techniques/", "author": "Sara Soueidan", "year": "2014"}, {"snippet": "It is almost 2014 and fifteen years ago the W3C started to develop a web-based scalable vector graphics (b4de2a49c8SVG8c94a2ed4b) format. As web technologies go, this one is pretty old and well entrenched. \n\nSee the Pen yJflC by Drew McLellan (@drewm) on CodePen\n\n\nEmbed not working on your device? Try direct. \n\nUnlike rasterized images, b4de2a49c8SVG8c94a2ed4b files will stay crisp and sharp at any resolution. With high-DPI phones, tablets and monitors, all those rasterized icons are starting to look a bit old and blocky. There are several options to get simpler, decorative pieces to render smoothly and respond to various...", "rank": -5.682417133067389, "title": "Animating Vectors with SVG", "url": "https://24ways.org/2013/animating-vectors-with-svg/", "author": "Brian Suda", "year": "2013"}, {"snippet": "...On the other hand, if smart scalability is what you\u2019re after, it\u2019s also possible to make all of an b4de2a49c8SVG8c94a2ed4b\u2019s shapes and motion scale with the b4de2a49c8SVG8c94a2ed4b canvas itself. Sarah covers both these clever responsive b4de2a49c8SVG8c94a2ed4b techniques in detail. Creative and complex animation can easily become responsive thanks to the power of b4de2a49c8SVG8c94a2ed4b! \nOpen video\n\nBake performance into your design decisions\nIt\u2019s hard to get very far into a responsive design discussion before performance comes up. Performance goes hand in hand with responsive design and your animation decisions can have a big impact on the overall...", "rank": -4.979730075945376, "title": "Animation in Responsive Design", "url": "https://24ways.org/2015/animation-in-responsive-design/", "author": "Val Head", "year": "2015"}, {"snippet": "...local('\u263a'), \n    url('pictos-web.woff') format('woff'), \n    url('pictos-web.ttf') format('truetype'),\n    url('pictos-web.b4de2a49c8svg8c94a2ed4b#webfontIyfZbseF') format('b4de2a49c8svg8c94a2ed4b');\n}\n\nThis rather complicated looking set of rules is (at the time of writing) the most bulletproof way of ensuring as many browsers as possible load the font we want.  We\u2019ll now use the content property applied to the :before pseudo-class selector to generate our icon. Once again, we\u2019ll use those multiple class attribute values to set common icon styles, then specific styles for .basket. This helps us avoid repeating styles:\n\n.icon {\n    font-family: 'Pictos';\n    font-size: 22px...", "rank": -4.460229255138014, "title": "Displaying Icons with Fonts and Data- Attributes", "url": "https://24ways.org/2011/displaying-icons-with-fonts-and-data-attributes/", "author": "Jon Hicks", "year": "2011"}, {"snippet": "...Our keyboard is actually an b4de2a49c8SVG8c94a2ed4b picture of a keyboard, so we can traverse the elements of it and map each element to a sound generated by one of the functions that we came up with before.\nArray.from(b4de2a49c8svg8c94a2ed4b.querySelector('rect'))\n  .sort((a, b) => + a.x - b.x)\n  .forEach((key, i) =>\n    key.addEventListener('touchstart',\n      sound(0.75, ease(harmony(freq(i + 48))))\n    )\n  )\n\nrect {stroke: #ddd;}\nrect:hover {opacity: 0.8; stroke: #000}\n\nEt voil\u00e0. We have a keyboard.\nWhat I like about this is that it\u2019s completely pure - there\u2019s no lookup tables or hardcoded attributes; we\u2019ve...", "rank": -4.405466598668232, "title": "Feeding the Audio Graph", "url": "https://24ways.org/2017/feeding-the-audio-graph/", "author": "Ben Foxall", "year": "2017"}, {"snippet": "...The pictures can be animated, such as in this canvas mashup of Wolfenstein 3D and Flickr. (The difference between canvas and b4de2a49c8SVG8c94a2ed4b is that b4de2a49c8SVG8c94a2ed4b uses vector graphics, so is infinitely scalable. It also keeps a DOM, whereas canvas is just pixels so you have to do all your own book-keeping yourself in JavaScript if you want to know where aliens are on screen, or do collision detection.)\n\nPreviously, you needed to do this using Adobe Flash or Java applets, requiring plugins and potentially compromising keyboard accessibility. Canvas drawing is supported now in Opera, Safari, Chrome and Firefox. The...", "rank": -4.356126848442522, "title": "HTML5: Tool of Satan, or Yule of Santa?", "url": "https://24ways.org/2009/html5-tool-of-satan-or-yule-of-santa/", "author": "Bruce Lawson", "year": "2009"}, {"snippet": "...Here\u2019s a page showing search results for b4de2a49c8svg8c94a2ed4b with facet counts calculated against both the year and the topic columns:\nhttp://search-24ways.herokuapp.com/24ways-ae60295/articles?_search=b4de2a49c8svg8c94a2ed4b&_facet=year&_facet=topic\nEvery page visible via Datasette has a corresponding JSON API, which can be accessed using the JSON link on the page - or by adding a .json extension to the URL:\nhttp://search-24ways.herokuapp.com/24ways-ae60295/articles.json?_search=acces%2A\nBetter search using custom SQL\nThe search results we get back from ../articles?_search=b4de2a49c8svg8c94a2ed4b are OK, but the order they are returned...", "rank": -3.6833393913363275, "title": "Fast Autocomplete Search for Your Website", "url": "https://24ways.org/2018/fast-autocomplete-search-for-your-website/", "author": "Simon Willison", "year": "2018"}, {"snippet": "...The software\nThe projected visuals, I imagined, could be anything you can create within a browser, whether that be simple HTML and CSS, images, videos, b4de2a49c8SVG8c94a2ed4b or canvas. The only requirement I have is that they move or change with sound and that I can mix any one visual into another.\nYou may remember a couple of years ago I created a demo on this very site, allowing audio-triggered visuals from the ambient sounds your device mic was picking up. That was a great starting point \u2013 I used that exact method to pick up the audio and thus the...", "rank": -3.677152746312101, "title": "Bringing Your Code to the Streets", "url": "https://24ways.org/2015/bringing-your-code-to-the-streets/", "author": "Ruth John", "year": "2015"}, {"snippet": "...Complex patterns that require a large number of gradients are probably better left to b4de2a49c8SVG8c94a2ed4b or bitmap images, since they negate almost every advantage of this technique:\n\n\n\tthey are not shorter\n\tthey are not really comprehensible \u2013 changing them requires much more effort than using an image editor\n\n\nThey still save an HTTP request, but so does a data URI.\n\nI have included some very complex patterns in my gallery, because even though I think they shouldn\u2019t be used in production (except under very exceptional conditions), understanding how they work and coding them helps somebody understand the technology in much...", "rank": -3.470831413764327, "title": "CSS3 Patterns, Explained", "url": "https://24ways.org/2011/css3-patterns-explained/", "author": "Lea Verou", "year": "2011"}, {"snippet": "...You may be wondering why you can\u2019t just use a vector format such as KML, GeoJSON (or even b4de2a49c8SVG8c94a2ed4b) \u2013 and you can \u2013 but the issue is the same as for WMS: you need a way to query the data to get the correct area and zoom level.\n\nUser interface\n\nThere is of course never a correct way to design an interface as there are so many different factors to take into consideration for each individual project. Maps can be used in a variety of ways, to provide simple information about directions or for complex visualisations to explain large amounts...", "rank": -3.17432205684481, "title": "Putting Design on the Map", "url": "https://24ways.org/2014/putting-design-on-the-map/", "author": "Shane Hudson", "year": "2014"}]