Search

Nalezeno "tricks": 3051

Bunny Fonts


Bunny Fonts bills itself as the “privacy-first web font platform designed to put privacy back into the internet.”According to its FAQ: With a zero-tracking and no-logging policy, Bunny Fonts helps you stay fully GDPR compliant and puts your user’s personal … Bunny Fonts...

Text-overflow: ellipsis considered harmful


Eric Eggert: There are a few legitimate use cases for this technique. For example, you might have a table with titles and descriptions. To preserve more space for the title, you constrain the description to one line on small … Text-overflow: ellipsis considered harmful originally...

How I Chose an Animation Library for My Solitaire Game


There is an abundance of both CSS and JavaScript libraries for animation libraries out there. So many, in fact, that choosing the right one for your project can seem impossible. That’s the situation I faced when I decided to build … How I Chose an Animation Library for My Solitaire...

Help Shape the Future of CSS-Tricks!


Hey, so it’s been a minute since we announced that CSS-Tricks is now part of the DigitalOcean family. Things are pretty much business as usual and hopefully it feels that way to you, too. Now that we’re getting settled, we’re … Help Shape the Future of CSS-Tricks!...

My Dumbest CSS Mistakes


We all make mistakes in our code. It happens! I know if I had one of those “Days Since Last Mistake” signs hanging over my desk, a big ol’ goose egg would be hovering above me all the time. It … My Dumbest CSS Mistakes originally published on CSS-Tricks. You should get...

Great (and Free!) Web Development Books You Can Get Online


Right after “Where is the best place to learn?” perhaps the most commonly asked question I hear from folks getting into code is “What web development books should I get to learn?” Well, consider this an answer to that question … Great (and Free!) Web Development Books...

Single Element Loaders: The Bars


We’ve looked at spinners. We’ve looked at dots. Now we’re going to tackle another common pattern for loaders: bars. And we’re going to do the same thing in this third article of the series as we have the others … Single Element Loaders: The Bars originally published on CSS-Tricks. You should...

Devs Share The Wild, Secret Hacks Your Favorite Games Rely On


Did you know all the horses in Assassin’s Creed 1 are built using really fucked up human skeletons? Or that Titan Quest used invisible squirrels as in-game timers? All of this is true and is more proof that games are mostly wild collections of code and hope that have more in common with miracles...

Different Ways to Write CSS in React


We’re all familiar with the standard way of linking up a stylesheet to the <head> of an HTML doc, right? That’s just one of several ways we’re able to write CSS. But what does it look like to style things … Different Ways to Write CSS in React originally published on CSS-Tricks....

10 Things I Wished I Knew Before Starting Neon White


Neon White, out now for Switch and PC, is easily one of the best games of the year. Between the anime vibes and the kickass soundtrack from Machine Girl, you’ll find a deliciously stylish speedrunning gauntlet that’s as easy to learn as it is hard to master. Over the past few days, I haven’t been...

Single Element Loaders: The Dots


We’re looking at loaders in this series. More than that, we’re breaking down some common loader patterns and how to re-create them with nothing more than a single div. So far, we’ve picked apart the classic spinning loader. Now, … Single Element Loaders: The Dots originally published...

Conditionally Styling Selected Elements in a Grid Container


Calendars, shopping carts, galleries, file explorers, and online libraries are some situations where selectable items are shown in grids (i.e. square lattices). You know, even those security checks that ask you to select all images with crosswalks or whatever. 🧐… Conditionally...

De-Mystifying IndieWeb on a WordPress Site


Well, sheesh. I opened a little can of worms when sharing Miriam’s “Am I on the IndieWeb yet?” with a short post bemoaning my own trouble getting on the IndieWeb train. But it’s a good can of worms. I think … De-Mystifying IndieWeb on a WordPress Site originally...

Useful Tools for Visualizing Databases on a Budget


A diagram is a graphical representation of information that depicts the structure, relationship, or operation of anything. Diagrams enable your audience to visually grasp hidden information and engage with them in ways that words alone cannot. Depending on the type … Useful Tools...

Single Element Loaders: The Spinner


Making CSS-only loaders is one of my favorite tasks. It’s always satisfying to look at those infinite animations. And, of course, there are lots of techniques and approaches to make them — no need to look further than CodePen to … Single Element Loaders: The Spinner originally published...

Am I on the IndieWeb yet?


Can’t smash the Like button hard enough for what Miriam Suzanne has to say on the challenging technical hurdles of implementing Webmentions: The first round required several online services along with HTML & JS changes to my static site, just to verify my … Am...

Let’s Make a QR Code Generator With a Serverless Function!


QR codes are funny, right? We love them, then hate them, then love them again. Anyways, they’ve lately been popping up again and it got me thinking about how they’re made. There are like a gazillion QR code generators out … Let’s Make a QR Code Generator With a Serverless...

Building Interoperable Web Components That Even Work With React


Those of us who’ve been web developers more than a few years have probably written code using more than one JavaScript framework. With all the choices out there — React, Svelte, Vue, Angular, Solid — it’s all but inevitable. One … Building Interoperable Web Components That Even...

New Game Tests Your Nerve As You Cheat At Cards To Rob The Rich


I’m on a ship, the waves rocking the boat as I deal cards to a former pirate and my friend (who is also my accomplice). We are trying to cheat this ex-pirate out of information and travel costs via a card game. To help us win, I use a small shiny object on the table to slyly peek at each card that...

Please Give Me Some Space


There’s all kinds of ways to do that. Some more advisable and better-suited for certain situations than others, of course. We could do it directly in HTML: <pWe go from one line...<br<brdown a couple more.</p But that’s … Please Give Me Some Space originally...

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