Pebbling Club 🐧đŸȘš

  • Nicolas Mattia – How to Set WebGL Shader Colors with CSS and JavaScript
    Notes
    WebGL shaders rendered to canvas elements are a great way to add interesting visuals to a website. Unfortunately, unlike HTML, they do not natively integrate with CSS. This post shows a way to work around this limitation and influence WebGL graphics from CSS.
    Feed
    Unfurl
  • Single HTML Element Star Rating Component - DEV Community
    Notes
    In this article, we'll explore how to build a star rating system using a single HTML and just one JavaScript command.
  • Durable websites | Go Make Things
    Notes
    Serve mostly static HTML. Use flat JSON storage. Go buildless! Use service workers. Go HTML-first.
    Feed
    Unfurl
  • moon toggle 🌛
    Notes
    Neat dramatic light / dark theme button
  • Retro futuristic radio buttons with GSAP
  • The Pixel Canvas Shimmer Effect
    Notes
    I recently stumbled on a super cool, well-executed hover effect from the clerk.com website where a bloom of tiny pixels light up, their glow staggering from the center to the edges of its container. With some available free time over this Thanksgiving break, I hacked together my own version of a pixel canvas background shimmer. It quickly evolved into a pixel-canvas Web Component that can be enjoyed in the demo below. The component script and demo code have also been pushed up to a GitHub repo.
    Feed
    Unfurl
  • How to fix Storybook screenshot testing | Tiger Oakes
    Notes
    As an alternative to Chromatic, I’ve been using Storybook’s Test Runner to power screenshot tests for Microsoft Loop. We configure the test runner to run in CI and take a screenshot of every story. However, the initial implementation based on the official Storybook docs was very flaky due to inconsistent screenshots of the same story. Here are some tips to reduce flakiness in your Storybook screenshot tests.
    Unfurl
  • Domo Dance Party! (2024 remake)
  • Sharp canvases | soledad penadĂ©s
    Notes
    If you are rendering images in a canvas element and want to keep the pixels square and BLOCKY, you should know about the image-rendering CSS property.
    Unfurl
  • More options for styling <details>  |  Chrome for Developers
    Notes
    From Chrome 131 you have more options to style the structure of <details> and <summary> elements. You can now use these elements when building disclosure or accordion widgets.
    Unfurl
  • </> htmx ~ You Can't Build Interactive Web Apps Except as Single Page Applications... And Other Myths
    Notes
    The browser has come a long way. Give it a chance!
    Feed
    Unfurl
  • The Different (and Modern) Ways To Toggle Content | CSS-Tricks
    Notes
    let’s spend some time looking at disclosures (<details> and <summary>), the Dialog API, the Popover API, and more. We’ll look at the right time to use each one depending on your needs. Modal or non-modal? JavaScript or pure HTML/CSS? Not sure? Don’t worry, we’ll go into all that.
    Feed
    Embed
    Unfurl
  • 3D parallax effect on hover
    Notes
    After the previous effect, I am trying another concept of 3D parallax effect with a better illusion!
    Feed
    Unfurl
  • @layer - CSS: Cascading Style Sheets | MDN
    Notes
    The @layer CSS at-rule is used to declare a cascade layer and can also be used to define the order of precedence in case of multiple cascade layers.
    Feed
    Unfurl
  • :has() - CSS: Cascading Style Sheets | MDN
    Notes
    The functional :has() CSS pseudo-class represents an element if any of the relative selectors that are passed as an argument match at least one element when anchored against this element. This pseudo-class presents a way of selecting a parent element or a previous sibling element with respect to a reference element by taking a relative selector list as an argument.
    Feed
    Unfurl
  • CSS container queries - CSS: Cascading Style Sheets | MDN
    Notes
    Container queries enable you to apply styles to an element based on the size of the element's container. If, for example, a container has less space available in the surrounding context, you can hide certain elements or use smaller fonts.
    Feed
    Unfurl
  • CSS Variables (custom properties) in Pseudo-element "content" Property - Stack Overflow
    Notes
    CSS custom properties with integer values can be displayed in a pseudo-element's content property via a CSS counter.
    Feed
    Unfurl
  • Tab panel using <details> with vertical tabs and web components
  • Tab panel using <details> with selectable tab orientation (no JS)
  • Example of Tabs with Automatic Activation | APG | WAI | W3C
    Notes
    This example section demonstrates a tabs widget that implements the Tabs Pattern. In this example, a tab is automatically activated and its associated panel is displayed when the tab receives focus. It is recommended that authors consider implementing automatic activation of tabs only in circumstances where panels can be displayed instantly, i.e., all panel content is present in the DOM.
    Feed
    Unfurl
  • Pure CSS Tabs
    Notes
    A version of a tab panel in HTML & CSS with no javascript, using a radio selector
  • Stripe Dot Dev
    Notes
    Learn how to build web and mobile applications to accept payments, send payouts, and manage your business online with Stripe.
    Unfurl
  • Cycling gradient glow - no text duplication
  • Using CSS to create a CRT
    Notes
    I have attempted to assemble a set of CSS effects to replicate this look mainly by adding three things: screen-door effect, flicker, and color separation
    Feed
    Unfurl
  • Tree views in CSS
    Notes
    A tree view (collapsible list) can be created using only HTML and CSS, without the need for JavaScript. Accessibility software will see the tree view as lists nested inside disclosure widgets, and the standard keyboard interaction is supported automatically.
    Unfurl
  • Another 100 CSS loaders for your next project - DEV Community đŸ‘©â€đŸ’»đŸ‘šâ€đŸ’»
    Notes
    Ready for the second set of loaders? Yes, it's again me with another collection of 100 CSS loaders. Now you have a total of 200 different loaders!
    Unfurl
  • DRY Switching with CSS Variables: The Difference of One Declaration | CSS-Tricks
    Notes
    This is the first post of a two-part series that looks into the way CSS variables can be used to make the code for complex layouts and interactions less difficult to write and a lot easier to maintain. This first installment walks through various use cases where this technique applies.
    Feed
    Embed
    Unfurl
  • Aerotwist - FLIP Your Animations
    Notes
    What we’re trying and do is to turn animations on their head (flip, see? Gosh darnit, I’m so funneh) and, instead of animating “straight ahead” and potentially doing expensive calculations on every single frame we precalculate the animation dynamically and let it play out cheaply.
    Feed
    Unfurl
  • Fill Murray
    Notes
    The internet was missing the ability to provide custom-sized placeholder images of Bill Murray. Now it can.
    Unfurl
  • CSS3 transitions using visibility and delay
    Notes
    An element with opacity of zero is still "opaque" to clicks and mouse-overs. This causes serious problems, especially for drop down menus:
    Feed
    Unfurl
  • Media Queries for Standard Devices | CSS-Tricks
    Feed
    Embed
    Unfurl
  • Case Study: Auto-Resizing HTML5 Games - HTML5 Rocks
    Notes
    In the summer of 2010, we created Sand Trap, a game that we entered in a competition on HTML5 games for mobile phones. But most mobile phones either displayed only part of the game or made the game too small—making it completely unplayable. So we took it upon ourselves to make the game fluidly adjust to match any resolution. After a bit of re-programming and using ideas outlined in this article, we had a game that scaled across any modern browser, whether it ran in a desktop or a mobile device.
    Unfurl
  • DevDocs
    Notes
    DevDocs is an all-in-one API documentation reader for developers.
    Feed
    Unfurl
  • Referencing DOM from JS: there must be a DRYer, safer way
    Notes
    It bothers me when I realize that I'm relying on CSS class names in my JS
    Feed
    Unfurl
  • Ladda
    Notes
    A UI concept which merges loading indicators into the action that invoked them. Primarily intended for use with forms where it gives users immediate feedback upon submit rather than leaving them wondering while the browser does its thing. For a real-world example, check out any of the forms on slid.es.
    Unfurl
  • Font Awesome, the iconic font designed for Bootstrap
    Unfurl
  • This is CSS
    Embed
    Unfurl
  • Build a Street Fighter Demo with CSS Animations and JavaScript
    Notes
    I recently learned a cool technique from Simurai about how to animate PNG sprites with the CSS3 animations' steps() property. The main idea in this technique is to "recreate" some kind of animated GIF but with the tiles of a PNG sprite.
    Feed
    Embed
    Unfurl
  • Markdown.css - make HTML look like plain-text
    Notes
    CSS to make HTML markup look like plain-text markdown.
    Unfurl
  • How to Create a CSS3 Ajax Loading Icon Without Images - SitePoint
    Notes
    Fortunately, CSS3 allows us to create loading icons without images. They’re easy to create, scale, re-color, use on any background and don’t incur image downloads
    Feed
    Unfurl
  • Demoing and displaying JavaScript at the same time using CSS | Christian Heilmann
    Notes
    If you do a view-source you find no other script in use, yet it displays in the page. What is this sourcery*? Simple, and it was Mathias Bynens who got me onto it: just display script elements as block and add some generated content to show the “Source” text:
    Feed
    Unfurl
  • lake.js
    Notes
    Lake.js takes an img element and inserts a canvas element displaying the image and its flipped reflection directly after the img element.
    Unfurl
  • bartaz/impress.js
    Notes
    It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.
    Unfurl
  • Arctext.js - Curving Text with CSS3 and jQuery | Codrops
    Notes
    While CSS3 allows us to rotate letters, it is quite complicated to arrange each letter along a curved path. Arctext.js is a jQuery plugin that let's you do exactly that. Based on Lettering.js, it calculates the right rotation of each letter and distributes the letters equally across the imaginary arc of the given radius.
    Feed
    Embed
    Unfurl
  • jQuery Masonry
    Notes
    A dynamic layout plugin for jQuery The flip-side of CSS floats
    Unfurl
  • CSS Media Queries
    Notes
    <blockquote>HTML4 and CSS2 currently support media-dependent style sheets tailored for different media types. A media query consists of a media type and zero or more expressions that check for the conditions of particular media features.</blockquote> Seems like a nifty site to vet media queries on all my devices
    Unfurl
  • Lasurs
    Notes
    CSS animated lazers!
    Unfurl
  • Device-scale user interface elements in iOS Mobile Safari - (37signals)
    Notes
    Instead, we developed a JavaScript technique for dynamically scaling elements based on the current zoom factor. The technique provides a magic class name device_scale that you can apply to any element you want to remain the same size regardless of zoom.
    Feed
    Unfurl
  • Shining - Awesome presentations in HTML!
    Notes
    A toolkit for building presentations in HTML
    Unfurl
  • Detecting Support for data: URIs | Weston Ruter
    Notes
    The data: URI scheme is now supported by the most current version of every major browser, including Internet Explorer. Because of this I wanted to use CSS background images encoded with data: URIs in a current project at Shepherd Interactive. Why? The first rule of High Performance Websites is to Minimize HTTP Requests. By storing background images directly in the stylesheet only one HTTP request is then necessary to fetch the stylesheet and the images all at once. Furthermore, by giving that stylesheet a far-future cache expiration date the browser will never need to request it again.
    Feed
    Embed
    Unfurl