Your Web News in One Place

Articles by CSS Tricks from December 2018

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
< Return to CSS Tricks details.
03:15 pm GMT - Fri, December 28, 2018
CSS Tricks Gradient Borders in CSS
Let's say you need a gradient border around an element. My mind goes like this:There is no simple obvious CSS API for this. I'll just make a wrapper element with a linear-gradient background, then an ...
03:11 pm GMT - Thu, December 27, 2018
CSS Tricks Gulp for WordPress: Creating the Tasks
This is the second post in a two-part series about creating a Gulp workflow for WordPress theme development. Part one focused on the initial installation, setup, and organization of Gulp in a WordPres...
03:04 pm GMT - Wed, December 26, 2018
CSS Tricks Gulp for WordPress: Initial Setup
This is the first part of a two-part series on creating a Gulp workflow for WordPress theme development. This first part covers a lot of ground for the initial setup, including Gulp installation and a...
04:40 pm GMT - Mon, December 24, 2018
CSS Tricks An Initial Implementation of clip-path: path();
One thing that has long surprised (and saddened) me is that the clip-path property, as awesome as it is, only takes a few values. The circle() and ellipse() functions are nice, but hiding overflows an...
11:56 pm GMT - Fri, December 21, 2018
CSS Tricks People Talkin Shapes
Codrops has a very nice article on CSS Shapes from Tania Rascia. You might know shape-outside is for redefining the area by which text is floated around that element, allowing for some interesting des...
03:16 pm GMT - Fri, December 21, 2018
CSS Tricks Animating Between Views in React
You know how some sites and web apps have that neat native feel when transitioning between two pages or views? Sarah Drasner has shown some good examples and even a Vue library to boot.These animation...
02:45 pm GMT - Thu, December 20, 2018
CSS Tricks Regarding CSSs Global Scope
html { font-family: Roboto, sans-serif;}With the except of some form elements, you've just set a font on every bit of text on a site! Nice! That's probably what you were trying to do, because of the ...
02:43 pm GMT - Thu, December 20, 2018
CSS Tricks The Fragmented, But Evolving State of CSS-in-JS
TLDR: The CSS-in-JS community has converged on a consistent API.Not so long ago, a Facebook engineer compiled a list of the available CSS-in-JS methodologies. It wasnt short: aphrodite, babel-plugin-c...
02:27 pm GMT - Thu, December 20, 2018
CSS Tricks WooCommerce
(This is a sponsored post.)I just read a nicely put together story about WooCommerce over on the CodeinWP blog. WooCommerce started life as WooThemes, sort of a "premium themes" business started by ju...
02:30 pm GMT - Wed, December 19, 2018
CSS Tricks Fighting FOIT and FOUT Together
Lots from Divya with the setup:There are 2 kinds of problems that can arise when using webfonts; Flash of invisible text (FOIT) and Flash of Unstyled Text (FOUT) ... If we were to compare them, FOUT i...
02:26 pm GMT - Wed, December 19, 2018
CSS Tricks Google Fonts and font-display
The font-display descriptor in @font-face blocks is really great. It goes a long way, all by itself, for improving the perceived performance of web font loading. Loading web fonts is tricky stuff and ...
07:28 pm GMT - Tue, December 18, 2018
CSS Tricks Ease-y Breezy: A Primer on Easing Functions
During the past few months, Ive been actively teaching myself how to draw and animate SVG shapes. Ive been using CSS transitions, as well as tools like D3.js, react-motion and GSAP, to create my anima...
02:59 pm GMT - Tue, December 18, 2018
CSS Tricks How to Worry About npm Package Weight
It's all too easy to go crazy with the imports and end up with megabytes upon megabytes of JavaScript. It can be a problem as that weight burdens each and every visitor from our site, very possibly de...
09:57 pm GMT - Mon, December 17, 2018
CSS Tricks Nobody is quite wrong.
There are two opposing views on using non-polyfillable new web features that I find are both equally common in our industry:Websites don't need to look the same in every browser. The concept of progre...
09:42 pm GMT - Mon, December 17, 2018
CSS Tricks A CSS Venn Diagram
This is pretty wild: Adrian Roselli has made a series of rather complex Venn diagrams using nothing but CSS. With a combination of the Firefox dev inspector, plus a mixture of CSS Grid and the shape-o...
03:12 pm GMT - Mon, December 17, 2018
CSS Tricks Reversing an Easing Curve
Lets take a look at a carousel I worked on where items slide in and out of view with CSS animations. To get each item to slide in and out of view nicely I used a cubic-bezier for the animation-timing-...
03:59 pm GMT - Fri, December 14, 2018
CSS Tricks Annotated Build Processes
When you're putting together a build process for a site, it's so dang useful to look at other people's processes. I ran across Andrew Welch's "An Annotated webpack 4 Config for Frontend Web Developmen...
03:20 pm GMT - Fri, December 14, 2018
CSS Tricks Making SVG icon libraries for React apps
Nicolas Gallagher:At Twitter I used the approach described here to publish the companys SVG icon library in several different formats: optimized SVGs, plain JavaScript modules, React DOM components, a...
03:16 pm GMT - Fri, December 14, 2018
CSS Tricks Two Ways to Build a Site That Seem Super Different But Weirdly Arent That Different
Here are two ways to build a site (abstractly) that feel diametrically opposed to me:Build a site as an SPA (Single Page App). The page loads a skeleton HTML page that executes JavaScript as quickly a...
11:17 pm GMT - Thu, December 13, 2018
CSS Tricks JavaScript to Native (and Back!)
I admit I'm quite intrigued by frameworks that allow you write apps in web frameworks because they do magic to make them into native apps for you. There are loads of players here. You've got NativeScr...
03:20 pm GMT - Thu, December 13, 2018
CSS Tricks Rendering Lists Using React Virtualized
Working with data in React is relatively easy because React is designed to handle data as state. The hassle begins when the amount of data you need to consume becomes massive. For example, say you hav...
03:16 pm GMT - Thu, December 13, 2018
CSS Tricks Level up your JavaScript error monitoring
(This is a sponsored post.)Automatically detect and diagnose JavaScript errors impacting your users with Bugsnag. Get comprehensive diagnostic reports, know immediately which errors are worth fixing, ...
05:22 pm GMT - Wed, December 12, 2018
CSS Tricks Keep Math in the CSS
There is a sentiment that leaving math calculations in your CSS is a good idea that I agree with. This is for math that you could calculate at authoring time, but specifically chose not to. For instan...
03:03 pm GMT - Wed, December 12, 2018
CSS Tricks Web Designs That Feel Like Ancient History, but Are More Recent Than You Think
Flickr announced not long ago that they are limiting free accounts to 1,000 photos. I don't particularly mind that (because it seems like sound business sense), although it is a bit sad that a ton of ...
09:19 pm GMT - Tue, December 11, 2018
CSS Tricks Prototypes and production
Theres an interesting distinction that Jeremy Keith defines between prototype code and production code in this post and Ive been thinking about it all week:...every so often, we use the materials of f...
03:07 pm GMT - Tue, December 11, 2018
CSS Tricks Creating an Animated Login Form for TouchID
I came across this amazing Dribbble shot by Jakub Reis a while back. It caught my eye and I knew that I just had to try recreating it in code. At that moment, I didnt know how. I tried out a bunch of ...
03:06 pm GMT - Tue, December 11, 2018
CSS Tricks What makes someone a good front-end developer?
We recently covered this exact same thing, but from the perspective of a bunch of developers.Chris Ferdinandi weighs in: The least important skills for a front-end developer to have are technical ones...
10:16 pm GMT - Mon, December 10, 2018
CSS Tricks Why isnt it ?
The way JavaScript works is we can do scripts as an inline block:<script> let foo = "bar";</script>Or, if the script should be fetched from the network...<script src="/js/global.j...
03:24 pm GMT - Mon, December 10, 2018
CSS Tricks An Introduction and Guide to the CSS Object Model (CSSOM)
If you've been writing JavaScript for some time now, it's almost certain you've written some scripts dealing with the Document Object Model (DOM). DOM scripting takes advantage of the fact that a web ...
03:21 pm GMT - Mon, December 10, 2018
CSS Tricks Google Labs Web Components
I think it's kinda cool to see Google dropping repos of interesting web components. It demonstrates the possibilities of cool new web features and allows them to ship them in a way that's compatible w...
03:24 pm GMT - Fri, December 7, 2018
CSS Tricks What do you name color variables?
What naming scheme do you use for color variables? Have you succeeded at writing CSS that uses color variables in a manner agnostic to the colors they represent?I've tried all of the following, an...
03:20 pm GMT - Fri, December 7, 2018
CSS Tricks Accessible SVG Icons With Inline Sprites
This is a great look at accessible SVG markup patterns by Marco Hengstenberg. Here's the ideal example:<button type="button"> Menu <svg class="svg-icon" role="img" height="10" ...
12:59 am GMT - Fri, December 7, 2018
CSS Tricks Compound Components in React Using the Context API
Compound components in React allow you to create components with some form of connected state thats managed amongst themselves. A good example is the Form component in Semantic UI React.To see how we ...
10:11 pm GMT - Thu, December 6, 2018
CSS Tricks Edges Announcements
The public-consumption blog post: Ultimately, we want to make the web experience better for many different audiences. People using Microsoft Edge (and potentially other browsers) will experience impro...
04:51 pm GMT - Thu, December 6, 2018
CSS Tricks Browser Diversity Commentary, Regarding the Edge News
Still no word from the horse's mouth about the reported EdgeHTML demise, but I hear that's coming later today. The blog posts are starting to roll in about the possible impact of this though.Andre Gar...
03:25 pm GMT - Thu, December 6, 2018
CSS Tricks DRY State Switching With CSS Variables: Fallbacks and Invalid Values
This is the second post in a two-part series that looks into the way CSS variables can be used to make the code for complex layouts and interactions less difficult to write and a lot easier to maintai...
03:22 pm GMT - Thu, December 6, 2018
CSS Tricks CSS Selectors are Conditional Statements
.foo {}Programmatically, is:if (element has a class name of "foo") {}Descendent selectors are && logic and commas are ||. It just gets more complicated from there, with things like c...
03:20 pm GMT - Thu, December 6, 2018
CSS Tricks A Visual, Intuitive Approach to Project Management
(This is a sponsored post.)You know how valuable project management is for teams of any size. Whether you're a small shop or full-blown agency, your clients and projects depend on tracked deliverables...
09:07 pm GMT - Wed, December 5, 2018
CSS Tricks The Software We Pay For
We did a Web Developer Economics series a few years ago, where we looked at the various costs of being a web developer:Web Developer Economics: One-Off Software CostsWeb Developer Economics: Hardware ...
02:38 pm GMT - Wed, December 5, 2018
CSS Tricks DRY Switching with CSS Variables: The Difference of One Declaration
This is the first post of a two-part series that looks into the way CSS variables can be used to make the code for complex layouts and interactions less difficult to write and a lot easier to maintain...
02:33 pm GMT - Wed, December 5, 2018
CSS Tricks The All Powerful Front-End Developer
I posted a video of this talk some months back, but it was nearly an hour and a half long. Here's an updated version that I gave at JAMstack_conf that's only 30 minutes:The gist is that the front-end ...
03:39 pm GMT - Tue, December 4, 2018
CSS Tricks Its not about the device.
Ever have that, "Ugighgk, another device to support?!" feeling? Like, perhaps when you heard that wrist devices have browsers? Ethan's latest post is about that. Personally, the Apple Watch is interes...
03:03 pm GMT - Tue, December 4, 2018
CSS Tricks Bridging the Gap Between CSS and JavaScript: CSS Modules, PostCSS and the Future of CSS
In the previous post in this two-part series, we explored the CSS-in-JS landscape and, we realized not only that CSS-in-JS can produce critical styles, but also that some libraries dont even have a ru...
01:59 pm GMT - Tue, December 4, 2018
CSS Tricks Sayonara Edge
Sounds like Edge is going to spin down EdgeHTML, the engine that powers edge, and go with Chromium. It's not entirely clear as I write whether the browser will still be called Edge or not. Opera did t...
09:16 pm GMT - Mon, December 3, 2018
CSS Tricks Too Much Accessibility
I like to blog little veins of thought as I see them. We recently linked to an article by Facundo Corradini calling out a tweet of ours where we used an <em> where we probably should have used...
02:51 pm GMT - Mon, December 3, 2018
CSS Tricks Bridging the Gap Between CSS and JavaScript: CSS-in-JS
In this article, were going to dig into the concept of CSS-in-JS. If youre already acquainted with this concept, you might still enjoy a stroll through the philosophy of that approach, and you might b...
03:21 pm GMT - Fri, November 30, 2018
CSS Tricks Blue Beanie Day 2018
Another year!You better not cry, you better not shout, Im telling you why: @BlueBeanieDay is coming Nov. 30! Start sharing your #bbd photos, links, articles, and videos now: https://t.co/3US4vHBsDR#a1...
03:06 pm GMT - Fri, November 30, 2018
CSS Tricks Nesting Components in Figma
For the past couple of weeks, Ive been building our UI Kit at Gusto, where I work, and this is a Figma document that contains all of our design patterns and components so that designers on our team ca...
03:02 pm GMT - Fri, November 30, 2018
CSS Tricks Embed a Blog Onto Any Website With DropInBlog
With DropInBlog, you can embed a blog into your site in only three minutes. A quick JavaScript/HTML widget, or a full-featured JSON API, is all it takes.A headless blog you can take anywhereEver been ...