AI 摘要The article argues that animated SVGs are superior to GIFs for images well-suited to vector format, such as icons, logos, and simple illustrations. SVGs offer resolution independence for crisp display at any scale, proper alpha-channel transparency without the halo artifacts caused by GIFs' binary transparency, and smoother, more controllable animations via CSS, JavaScript, or SMIL. Additionally, animated SVGs have dramatically smaller file sizes than GIFs, as illustrated by an example where the SVG was only 0.355KB compared to the GIF's 21.23KB.
AI 摘要This article provides practical tips for designers on creating and exporting cleaner, more optimized SVG code using graphics editors like Adobe Illustrator, so that developers can more easily embed, style, and animate the resulting files. Key recommendations include using simple shape elements instead of paths, weighing the pros and cons of converting text to outlines, simplifying paths, avoiding unnecessary path merging, using SVG filters rather than Photoshop effects, fitting artboards to drawings, and following good naming, grouping, and layering conventions. The article concludes by emphasizing the importance of choosing the most suitable export options for web use.
AI 摘要This is a speculative short story set in a future where AI progress comes from scaling supervised learning, and humans work as 'shapers' who remotely supervise AI agents through paid Human Intelligence Tasks using robotic avatars. The protagonist Merus, a top-rated shaper, accepts a HIT at the Hilltop Hotel hoping to see his colleague Licia, controlling a Visceral 5.0 avatar—a trillion-parameter neural network renowned for reliability and for its enigmatic 'Mystery module' that dramatically boosts cognition despite being poorly understood. The story ends on a cliffhanger when a routine diagnostic fails, revealing a checksum error in a module of the agent's weights.
AI 摘要This is the final article in a series comparing common CSS techniques with their SVG counterparts. Rather than comparing a single solution achievable in both CSS and SVG, it serves as a roundup of multiple solutions, offering an overview of each. The author provides links to existing detailed articles covering these solutions and encourages readers to explore them.
AI 摘要This article, the third in a series comparing CSS and SVG, explores techniques for creating arbitrarily-shaped UI components using CSS properties, SVG capabilities, or a combination of both. It focuses specifically on circular menus as a prime example of functional non-rectangular UI elements.
AI 摘要This article is the second in a series comparing techniques achievable with both CSS and SVG, focusing specifically on styling checkboxes and radio buttons. It demonstrates how these form elements can be customized using both approaches, including creating animated checkboxes with SVG's line drawing capabilities.
AI 摘要This article explains how to create a circular navigation menu using the CSS clip-path property combined with SVG paths. It notes that clip-path is an underused but powerful CSS feature that can produce interesting layouts and animations, and that browser handling of pointer events on clipped regions makes building circular menus fairly straightforward.
AI 摘要The article explores how to write a robust extend() helper for copying properties between objects in JavaScript. The author shows that a naive for...in loop fails with accessors defined via Object.defineProperty(), while blindly copying property descriptors can break native properties like CSS style properties. The final solution combines both approaches, using defineProperty() only when the descriptor reveals accessors or non-default attributes, and notes that neither jQuery's extend() nor ES6's Object.assign() handles accessors properly.
AI 摘要The author argues that blind reviews are fundamentally flawed for industry conference talk selection because, unlike academia where full papers are judged, committees must evaluate talks from short abstracts while balancing multiple factors like content and speaker skill. This leads to conservative selections that reject challenging topics requiring skilled presenters, penalize great speakers who lack abstract-writing skills, and strip all personality from proposals, as illustrated by the author's own highly successful border-radius talk that would never have survived a blind review. Rather than dismissing anonymization entirely, the author suggests an initial blind review round that filters without rejecting could preserve fairness while avoiding these flaws.
AI 摘要This article is the first in a series comparing CSS and SVG techniques for web design problems, aiming to objectively weigh the pros and cons of each despite the author's admitted bias toward SVG. In this first installment, the focus is on graphical text effects, examining the CSS background-clip and mask-image properties alongside SVG pattern fills and masks.
AI 摘要The author, while working on a Web-related open source research project at MIT that involves editing Web content, created Stretchy, a standalone JavaScript utility for autosizing form controls such as inputs, textareas, and select menus. Unlike existing solutions, it automatically handles newly added controls without requiring API calls or custom events. The script is available on GitHub and can also be used as a bookmarklet to autosize form controls on any existing page.
AI 摘要This article explains how to style the contents of the SVG element with CSS, addressing the challenges that arise because the content is cloned into the shadow DOM. It covers the limitations this cloning introduces and demonstrates workarounds that take advantage of the CSS cascade and CSS Variables to gain full control over the styled content. It also provides fallbacks for browsers that don't support CSS Variables.
AI 摘要Frustrated by promotional emails and newsletters with hard-to-find unsubscribe links, the author created a Tumblr blog called 'Spot the Unsubscribe!' to highlight examples of this widespread dark pattern. They argue that unsubscribe links should be immediately obvious, noting that Google even added a Gmail feature to make such links more visible. The author hopes others will submit examples, though new posts may otherwise be infrequent.
AI 摘要The author describes developing an SVG infographic for Provata Health's website and explains why they embedded it with the HTML element instead of or : the SVG text needed to remain accessible, selectable, searchable, and serve as a raw text fallback if the graphic failed to load. Since hiding parts of a single SVG via CSS/JavaScript was impractical due to file size, they served separate desktop and mobile SVGs, swapping the object's data attribute with a small inline, non-async script (using Modernizr media queries) so the important graphic would render as quickly as possible. The article concludes by noting that inlining such small scripts can improve load times and suggesting that a -like element for would be a useful HTML extension.
AI 摘要Conical gradients (conic-gradient()) have remained unimplemented in browsers despite being specced in 2012, largely because few developers know they exist and thus browsers see no demand, while the earlier technical barrier in Cairo's graphics library has since been resolved. The author demonstrates their usefulness—such as creating pie charts with a single line of CSS—and has publicly released a polyfill during a CSSConf talk. The article urges developers to speak up about the features they want, for example by commenting on or voting for the bug reports filed with major browser vendors, since browsers prioritize implementing features based on developer demand.
AI 摘要The state of SVG animation is changing, with CSS, SMIL, and JavaScript all offering ways to animate SVGs. However, SMIL is soon to be deprecated and was never supported in Internet Explorer, while CSS animations have inconsistent browser support and are buggy in some browsers. The article reviews the current and future state of SVG animation, explaining what you can and can't do and offering advice on choosing the right tool for your specific animation needs.
AI 摘要The article explains how SVG's viewBox attribute can be used to crop an SVG canvas and art-direct images, showing different portions of a composition at different screen sizes for responsive web design. It covers practical techniques such as retrieving crop coordinates from graphics editors like Adobe Illustrator, handling aspect-ratio mismatches with clipPath, and notes that changing the viewBox across media queries currently requires JavaScript. The author argues that a native viewBox property in CSS would make this process far more optimal and hopes the article serves as a use case to push that old SVGWG proposal forward.
AI 摘要This article provides an in-depth introduction to CSS graphical effects, specifically covering CSS Filters along with Compositing and Blending capabilities. It explains the properties for each feature, their different values, and includes usage examples. The article demonstrates the various graphical effects that can be created using only a few lines of CSS.