Crafting a Scrollable and Draggable Parallax Slider


A tutorial on how to build a slider with an interesting parallax effect that you can either scroll or drag through. The post Crafting a Scrollable and Draggable Parallax Slider appeared first on Codrops

Native CSS Masonry Layout In CSS Grid


Rachel Andrew introducing the fact that masonry layout is going to be a thing in native CSS via CSS grid layout. The thing with masonry is that we can already do it for the most part, but there is just one thing that makes it hard: doing the vertical-staggering and having a left-to-right source...

Super Tiny Icons


A bunch of SVG icons (of popular things) all under 1KB. SVG is awesome for golfing. I was going to add a CodePen logo but there is already one in there at 375 Bytes. I’ve got one at 208 Bytes, based on a logo update David DeSandro did for us a couple years back. Direct Link to Article...

Lots of Ways to Use Math.random() in JavaScript


Math.random() is an API in JavaScript. It is a function that gives you a random number. The number returned will be between 0 (inclusive, as in, it’s possible for an actual 0 to be returned) and 1 (exclusive, as in, it’s not possible for an actual 1 to be returned). Math.random(); // returns...

Collective #637


Building TakeNote * Boop! * Native Aspect Ratio Boxes in CSS * List.js * A tale of four prototypes The post Collective #637 appeared first on Codrops

10 Amazing Media Tricks Made Possibly by Cloudinary (Sponsored)


Cloudinary is my go-to place for transforming and optimizing media before delivery. By simply modifying the URL of an image or video, you can customize its size, presentation, Instagram-like filtering, and various other aspects. I previously posted about the 10 excellent image tricks...

A Complete State Machine Made With HTML Checkboxes and CSS


State machines are typically expressed on the web in JavaScript and often through the popular XState library. But the concept of a state machine is adaptable to just about any language, including, amazingly, HTML and CSS. In this article, we’re going to do exactly that. I recently built a website...

Collective #636


Web Development for Beginners * Playfulness In Code * Text Gradients in CSS * What are design tokens? The post Collective #636 appeared first on Codrops

Exploring What the Details and Summary Elements Can Do


We’ve mentioned before just how great the <details> and <summary> elements are. They’re great for quickly making accordions that are accessible to touch, mouse, and keyboard input: CodePen Embed Fallback <details> and <summary> can even be used to play/pause gifs!...

Three Things You Didn’t Know About AVIF


AVIF, the file format based on the AV1 video codec, is the latest addition to the next-gen image formats. Early reports and comparisons show good results compared to JPEG and WebP. However, even if browser support is good, AVIF is still on the bleeding edge in regards to encoding and decoding....

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace