Search
Get a React Component by DOM Node
15.5.2018
Retrieving a React component’s DOM node is fairly simple from within the component itself, but what if you want to work backward: retrieve a component’s instance by DOM node? This is a task that the old Dojo Toolkit’s Dijit framework allowed with the dojo.byId method, so it made...
Collective #415
14.5.2018
Warrior.js * Math and front-end * Unicode Patterns * Record Label Logos * Make Frontend Shit Again * ScrollHint
Collective #415 was written by Pedro Botelho and published on Codrops
Ship Map
14.5.2018
Interactive maps can both be functional and, when combined with data, tell a good story. Kiln released this data-driven map (make sure to hit the play button) to show the routes of every cargo ship moving about on the high seas in 2012.
Created by London-based data visualisation studio Kiln...
How to Get a React Component’s Element
14.5.2018
JSX is an amazing pseudo-language for React, and if I’m honest, it’s what brought me to love React so much. Using React without JSX is cumbersome and frustrating, while using JSX is such an easier way to express your code. One drawback of JSX, however, is that it makes accessing...
What’s wrong with CSS-in-JS?
11.5.2018
Brad Frost thinks it's:
Lack of portability
Context Switching
Flushing best practices down the toilet
In the spirit of good-ol-fashioned blog-and-response, here's:
Brain Muenzenmeyer's response
Micah Godbolt's response
I'd like to point out that "CSS-in-JS" is an umbrella term, and that there...
Add Authentication to Any Web Page in 10 Minutes
10.5.2018
This content is sponsored via Syndicate Ads
Adding authentication to web pages can be pretty annoying.
While I'd like to say that
Collective #414
10.5.2018
Guess.js * Styling buttons, the right way * Ranger * Fugue * First Input Delay * Themify * What's right with css-in-js
Collective #414 was written by Pedro Botelho and published on Codrops
Vertically Centering with Flexbox
8.5.2018
Vertically centering sibling child contents is a task we’ve long needed on the web but has always seemed way more difficult than it should be. We initially used tables to accomplish the task, then moved on to CSS and JavaScript tricks because table layout was horribly inefficient —...
Collective #413
7.5.2018
Brusher * Pin Screen * Impact * Inspecting Animations in DevTools * My most useful RegExp trick * No Lick * illustration.tools
Collective #413 was written by Pedro Botelho and published on Codrops
React and autofocus
7.5.2018
While I love ReactJS, I can say that I sometimes find interactions that were easy during the pre-ReactJS are annoyingly difficult or at least “indirect”. One example is properly ensuring that a given <input> element gets focused when a button in a different component...
Script & Style Show: Episode 9: What’s in the News
4.5.2018
In this episode: David reveals his tree-falling-into-house nightmare, but quickly moves onto recent news, like the massive release of Dojo 2, EU privacy, service workers landing in all major browsers (finally Edge!), this tweet, and more!  
The post Script & Style Show: Episode...
Collective #412
3.5.2018
Pure CSS Francine * Curtains.js * Responsive Knockout Text * ReLaXed * BigInt * Cards Webflow UI Kit * Lobe
Collective #412 was written by Pedro Botelho and published on Codrops
Ideas for Proximity Feedback with Progressive Hover Effects
2.5.2018
We're exploring a progressive hover effect which triggers not just when we are hovering an element but progressively, when we come close to it.
Ideas for Proximity Feedback with Progressive Hover Effects was written by Mary Lou and published on Codrops
IP Geolocation with ipstack (Sponsored)
2.5.2018
Knowing where your web visitor is located is an incredible advantage to any website; you can show relative content like maps, pricing, and availability, output your content in their likely language, etc — I cannot overstate how useful that information is. Of course we have the HTML5...
Change Python Version
1.5.2018
Python plays a major role at Mozilla; much of our website backends and tooling are written in the powerful language. Want to build Firefox? You’ll need to make sure you have the proper Python version, which I recently found out had been upgraded. Despite installing and verifying I had...
Collective #411
30.4.2018
cssgr.id * Ivy * Lifefaker * VS Code Extensions * Unavatar * load-asset * Figurine * Heartbeat Function
Collective #411 was written by Pedro Botelho and published on Codrops
Practical Jokes in the Browser
28.4.2018
I know April Fool’s Day is at the beginning of this month, but hey, now you’ve got a year to prepare. Not to mention a gool ol’ practical joke can be done anytime.
Fair warning on this stuff… you gotta be tasteful. Putting someone’s stapler in the jello is pretty hilarious unless it’s somehow...
CSS Blocks
27.4.2018
A new entry into the CSS-in-JS landscape! Looks like the idea is that you write an individual CSS file for every component. You have to work in components, that's how the whole thing works. In the same isle as styled-components, css-modules, and glamorous.
Then you write :scope { } which is...
Collective #410
26.4.2018
Native-Like Animations * Grid to Flex * Sketch UX Kit * Day.js * Classroomies * Recurss * Animating Progress * VHS Effects
Collective #410 was written by Pedro Botelho and published on Codrops
Particle Effects for Buttons
25.4.2018
A little library that can be used for bursting particles effects. The idea is to disintegrate an element into particles and make it disappear (or vice versa).
Particle Effects for Buttons was written by Luis Manuel and published on Codrops