Crafting a Scrollable and Draggable Parallax Slider
1.12.2020
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
1.12.2020
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
30.11.2020
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
30.11.2020
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
30.11.2020
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)
30.11.2020
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...
11 Massive Cyber Monday 2020 Deals With Up to 94% Off
30.11.2020
Find out where you can get exclusive Cyber Monday deals for web professionals with great discounts.
The post 11 Massive Cyber Monday 2020 Deals With Up to 94% Off appeared first on Codrops
Building a Svelte Static Website with Smooth Page Transitions
30.11.2020
A video tutorial that will show you how to build a static website with Svelte and add smooth page transitions using Three.js and GSAP.
The post Building a Svelte Static Website with Smooth Page Transitions appeared first on Codrops
A Complete State Machine Made With HTML Checkboxes and CSS
27.11.2020
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
26.11.2020
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
26.11.2020
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
26.11.2020
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....