Search

Nalezeno "elements": 321

Scroll Shadows With JavaScript


Scroll shadows are when you can see a little inset shadow on elements if (and only if) you can scroll in that direction. It’s just good UX. You can actually pull it off in CSS, which I think is … The post Scroll Shadows With JavaScript appeared first on CSS-Tricks. You can support...

Animation Techniques for Adding and Removing Items From a Stack


Animating elements with CSS can either be quite easy or quite difficult depending on what you are trying to do. Changing the background color of a button when you hover over it? Easy. Animating the position and size of an … The post Animation Techniques for Adding and Removing Items From...

Playing Genshin Impact's Last Update As Its Villain Was Eye-Opening


I’ve been building up my Raiden Shogun character so that I could use her to clear Genshin Impact’s latest chapter. She’s the main antagonist of the game’s Inazuma region, so I thought it would be interesting to attack and dethrone god using god herself. Read more

7 Practical Uses for the ::before and ::after Pseudo-Elements in CSS


CSS ::before and ::after pseudo-elements allow you to insert “content” before and after any non-replaced element (e.g. they work on a <div> but not an <input>). This effectively allows you to show something on a web page that might … The post 7 Practical Uses...

On the `dl`


Blogging about HTML elements¹? *chefs kiss* Here’s Ben Myers on the (aptly described) “underrated” Definition List (<dl>) element in HTML: You might have also seen lists of name–value pairs to describe lodging amenities, or to list … The post On the `dl` appeared...

Firefox’s `bolder` Default is a Problem for Variable Fonts


Variable fonts make it easy to create a large set of font styles from a single font file. Unfortunately, the default rendering of the <b> and <strong> elements in browsers today is not very compatible with the wide range of … The post Firefox’s `bolder` Default is a Problem...

CSS Pseudo Commas


A bonafide CSS trick if there ever was one! @ShadowShahriar created a CodePen demo that uses pseudo-elements to place commas between list items that are displayed inline, and the result is a natural-looking complete sentence with proper punctuation. CodePen Embed… The post CSS Pseudo Commas...

Layout with Reveal Animations and Content Preview


Some experimental reveal animations on typographic elements as repeating pattern for a website design. The post Layout with Reveal Animations and Content Preview appeared first on Codrops

:nth-child Between Two Fixed Indexes


I needed to select some elements between two fixed indexes the other day — like literally the second through fifth elements. Ironically, I have a whole post on “Useful :nth-child Recipes” but this wasn’t one of them. The answer, it … The post :nth-child Between Two Fixed...

Using Custom Elements in Svelte


Svelte fully supports custom elements (e.g. <my-component>) without any custom configuration or wrapper components and has a perfect score on Custom Elements Everywhere. However, there are still a few quirks you need to watch out for, especially around … The post Using Custom...

Always Show Arrows for Number Input


While I enjoy small details that make user interfaces more elegant, I also believe that less is more, especially when it comes to native behavior. One native behavior I dislike is that <input type="number" /> elements only show the increment and decrement arrows when the input is focused....

Star Wars: The Bad Batch Has A Great Fallen Order Moment


Disney, the ultimate experts in brand tie-ins, did something very specific last Friday that stood out to anyone who has played Respawn’s terrific Star Wars Jedi: Fallen Order game. To go along with the announcement that Fallen Order will get an upgrade for the PS5 and Xbox Series X, Star Wars:...

Adding Shadows to SVG Icons With CSS and SVG Filters


Why would we need to apply shadows to SVG? Shadows are a common design feature that can help elements, like icons, stand out. They could be persistent, or applied in different states (e.g. :hover, :focus, or :active) … The post Adding Shadows to SVG Icons With CSS and SVG Filters appeared...

Put a Background on Open Details Elements


One thing that can be just a smidge funky about the <details> element is that, when open, it’s not always 100% clear what is inside that element and what isn’t. I’m not saying that always matters or that it’s a … The post Put a Background on Open Details...

Serverless Functions: The Secret to Ultra-Productive Front-End Teams


Modern apps place high demands on front-end developers. Web apps require complex functionality, and the lion’s share of that work is falling to front-end devs: building modern, accessible user interfaces creating interactive elements and complex animations managing complex application...

Next Gen CSS: @container


Chrome is experimenting with @container, a property within the CSS Working Group Containment Level 3 spec being championed by Miriam Suzanne of Oddbird, and a group of engineers across the web platform. @container brings us the ability to … The post Next Gen CSS: @container appeared first...

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