Search

Nalezeno "hover": 148

In Praise of the Unambiguous Click Menu


I still remember my excitement when I learned how to build a hover-triggered submenu with just CSS. (It was probably after reading this 2003 article from A List Apart.) At the time, it was a true CSS trick. Seriously. … The post In Praise of the Unambiguous Click Menu appeared first...

Long Hover


I had a very embarrassing CSS moment the other day. I was working on the front-end code of a design that had a narrow sidebar of icons. There isn’t enough room there to show text of what the icons are, … The post Long Hover appeared first on CSS-Tricks. You can support CSS-Tricks...

Circular SVG Text Animation


Exploring some experimental circular SVG text effects for an intro animation. The post Circular SVG Text Animation appeared first on Codrops

Don’t put pointer-events: none on form labels


Bruce Lawson with the tip of the day, warning against the use of pointer-events: none on forms labels. We know that pointer-events is used to change how elements respond to click, tap, hover, and active states. But it apparently borks … The post Don’t put pointer-events: none on form labels...

Scrollbars on Hover


First, scrollbars are a usability and accessibility thing. Second, a rule of thumb: if an area scrolls, it should have a visible scrollbar. But the web is a big place and I like tricks, so I’m going to cover the … The post Scrollbars on Hover appeared first on CSS-Tricks. You...

Inline Menu Layout with Gallery Panel


An inline menu layout with a playful hover animation and a gallery content preview panel. The post Inline Menu Layout with Gallery Panel appeared first on Codrops

JavaScript Operator Lookup


Okay, this is extremely neat: Josh Comeau made this great site called Operator Lookup that explains how JavaScript operators work. There are some code examples to explain what they do as well, which is pretty handy. My favorite bit of UI design here are the tags at the bottom of the search...

Interaction Media Features and Their Potential (for Incorrect Assumptions)


The Media Queries Level 4 Interaction Media Features — pointer, hover, any-pointer and any-hover — are meant to allow sites to implement different styles and functionality (either CSS-specific interactivity like :hover, or JavaScript behaviors, when queried using window.matchMedia), depending...

Using a brightness() filter to generically highlight content


Rick Strahl: I can’t tell you how many times over the years I’ve implemented a custom ‘button’ like CSS implementation. Over the years I’ve used images, backgrounds, gradients, and opacity to effectively ‘highlight’ a control. All that works of course,...

Excluding Emojis From Transparent Text Clipping


CSS-Tricks has this pretty cool way of styling hovered links. By default, the text is a fairly common blue. But hover of the links, and they’re filled with a linear gradient. 😍 Pretty neat, right? And the trick isn’t all that complicated. On hover… give the link a linear...

A CSS-only, animated, wrapping underline


Nicky Meuleman, inspired by Cassie Evans, details how they built the anchor link hover on their sites. When a link is hovered, another color underline kinda slides in with a gap between the two. Typical text-decoration doesn’t help here, so multiple backgrounds are used instead,...

Magnetic Buttons


A small set of magnetic buttons with some fun hover animations. The post Magnetic Buttons appeared first on Codrops

SVG Title vs. HTML Title Attribute


You know the title attribute? I can do this: <div title="The Title"I'm a div with a `title` </div And now if I’m on a device with a mouse pointer and hover the cursor over that element, I get… Which, uh, I guess is something. I sometimes use it for things like putting...

Bold on Hover… Without the Layout Shift


When you change the font-weight of a font, the text will typically cause a bit of a layout shift. That’s because bold text is often larger and takes up more space. Sometimes that doesn’t matter, like a vertical stack of links where the wider/bolder text doesn’t push anything...

Creating a Menu Image Animation on Hover


A tutorial on how to create a hover effect for a menu where images appear with an animation on each item. The post Creating a Menu Image Animation on Hover appeared first on Codrops

A Glitchy Grid Layout Slideshow


An experimental grid slideshow with a stack-like navigation and glitch effect. The post A Glitchy Grid Layout Slideshow appeared first on Codrops

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