Google HTML/CSS Style Guide
- Specifying type attributes in these contexts is not necessary as HTML5 implies text/css and text/javascript as defaults. This can be safely done even for older browsers.
Everything You Ever Wanted to Know About inputmode | CSS-Tricks
The inputmode attribute that helps browsers on devices with on-screen keyboards decide which keyboard to display (e.g. telephone, numeric, email, search) has been around for long, but it wasn’t until a few months ago that Safari for iOS and Chrome for Android adopted it. Time to get familiar with the concept. Christian Oliff’s article “Everything You Wanted To Know About inputmode” is a great primer to dive deeper into the attribute and how to make use of it. (cm)
This Ain’t Disney: A practical guide to CSS transitions and animations
The answer is physics. Specifically Newtonian physics, the branch of science dedicated to apples falling from trees onto scientists, also referred to as classical mechanics.
Button differentiation done right – UX Collective
Buttons normally have those traits in common: font style, font size, font color, button color, button size, borders, rounded corners, drop shadow or glow effects, hover state and animations.
If we try to change too many of these traits, the buttons might feel too foreign to the general design of the project, and in this case the user will just click the most distinct one, and we’re basically back to just one CTA button.
Designing button focus states for better usability - DEV Community 👩💻👨💻
Many people exclusively use keyboards to navigate, and rely on the focus state to know where they are on the page.
There's a huge variety of reasons why someone might use a keyboard over a mouse, and for many, using the mouse as a fallback just isn't an option.
46 Flex Layouts - ONE markup
The Stack: Every Layout
Since the declaration is not context sensitive, any correct application of the margin is a matter of luck. If the paragraph is proceeded by another element, the effect is desirable. But a :last-child paragraph produces a redundant margin. Inside a padded parent element, this redundant margin combines with the parent’s padding to produce double the intended space. This is just one problem this approach produces.
Kadinsky Bauhaus in CSS Grid
Relearn CSS layout
If you find yourself wrestling with CSS layout, it’s likely you’re making decisions for browsers they should be making themselves. Through a series of simple, composable layouts, Every Layout will teach you how to better harness the built-in algorithms that power browsers and CSS.
The Front-End Checklist
An Exhaustive List of all the Elements you need to have/test Before Launching your Website To Production.
CSS masonry with flexbox, :nth-child(), and order
On the surface it seems fairly easy to create a masonry layout with flexbox; all you need to do is set flex-flow to column wrap and voilà, you have a masonry layout. Sort of. The problem with this approach is that it produces a grid with a seemingly shuffled and obscure order. Items will be (unbeknownst to the user) rendered from top to bottom and someone parsing the grid from left to right will read the boxes in a somewhat arbitrary order, for example 1, 3, 6, 2, 4, 7, 8, 5, and so on so forth.
How to Use CSS Animations Like a Pro
Create animation magic using keyframes, animation properties like timing, delay, play state, animation-count, iteration count, direction, fill mode and will-change.
A Designer's Guide to Animating Icons with CSS
As a designer, I love coming across fun animations when visiting a site, and I have definitely been seeing more and more of them lately. Animations take illustrations and icons to the next level, making a site that much more engaging. While they are obviously attractive to look at, they also serve a functional purpose, captivating visitors and encouraging them to interact with the content.
63 Beautiful Dark UI Examples & Design Inspiration
A curated collection of dark UI to inspire you in your product design process.
Even more examples of dark UI could be found on our amazing visual search.
Fading out siblings on hover in CSS
Here’s a tiny trick for making your hover states stand out, and also a cool way to target the siblings of the thing you’re hovering over. The effect is a mixture of two effects:
Scale the hovered item
Fade out the siblings
How To Align Things In CSS — Smashing Magazine
We have a whole selection of ways to align things in CSS today, and it isn’t always an obvious decision which to use. However, knowing what is available means that you can always try a few tactics if you come across a particular alignment problem.
Animating SVG with CSS – LogRocket
Do it yourself using the aforementioned CSS/Sass, or take a shortcut by using a plugin like Animate.CSS. It contains ready-to-use utility classes for common animations, such as fades, slides, shake, and many more.
Using CSS Grid the right way | hey it's violet
Use names. Use frs. Don't use a grid system. Wait, what? 2.17.2019
CSS Grid for Designers
How a new technology is changing layout on the web
We can create grids that better control the placement of elements both vertically and horizontally. All of this brings classic graphic design and art direction approaches back to web design.
How I started Motion Design using high-school Physics
As a motion enthusiast, there is one question that I have been asked the most:
“How do I start with Motion Design?”
To this, I often reply savagely, “You start with Physics”; scaring away most of the seekers 😂 But here is the thing — someone who is genuinely interested never stops with a single query. They follow up with questions after questions after questions. I love them! ❤️