Responsive masonry layout with React & flexbox 😎

  • columns : p % columns – orderString += ` – :nth-child(${p}) { – order: ${order}; – } – ` – } – return orderString – } – – /** – * Generate media queries for configuration breakpoints – * This entails setting the width of Panels at different viewport width…
  • masonry-panel { – width: ${100 / columns}%; – ${css` – columns)}; – `} – } – } – ` – } – return mediaString – } – – /** – * The container for our Masonry layout – * If there is configuration and we have children, then generate media…
  • : ‘animation: fadeOut 1s’} – transition: visibility 1s linear; – } – ` – – /** – * Simple panel elements – * Don’t have anything special happening – * The masonry-panel class is exposed so can be styled with CSS – */ – const MasonryPanel = styled.div` – overflow:…
  • debounce(this.layout, 0)) – } – /** – * Wipe the component state and reset it default, Don’t think this is necessary as setState overrides anyway – */ – // reset = () = { – // // this.setState({ – // // heights: [], – // // loading: false, – //…
  • heights[order – 1]) heights[order – 1] = 0 – heights[order – 1] = heights[order – 1] + parseInt(height, 10) – } – this.setState({ heights }) – } – /** – * Set the layout height based on referencing the content cumulative height – * This probably doesn’t need its own…

I put together a “true” masonry layout [pen](https://codepen.io/jh3y/pen/vgZWZL) a while back. I’ve been asked a couple of times how I’d go about port…
Continue reading “Responsive masonry layout with React & flexbox 😎”

#ReactJS State Management Practice

#ReactJS State Management Practice

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.


Continue reading “#ReactJS State Management Practice”

Clean React Toggle @CodePen @greensock @reactjs #svg #animation #ui #minimal

Clean React Toggle @CodePen  @greensock @reactjs #svg #animation #ui #minimal

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

Working on some tight, clean, minimal interaction….
Continue reading “Clean React Toggle @CodePen @greensock @reactjs #svg #animation #ui #minimal”

Simple SVG Dial in #react @CodePen @greensock @reactjs #svg #ui (might be useful!)

Simple SVG Dial in #react @CodePen  @greensock @reactjs #svg #ui (might be useful!)

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.


Continue reading “Simple SVG Dial in #react @CodePen @greensock @reactjs #svg #ui (might be useful!)”

Testing responsive grid design using CSS flex in @preactjs (@reactjs). Link:

Testing responsive grid design using CSS flex in @preactjs (@reactjs). Link:

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

Built in Preact.js….
Continue reading “Testing responsive grid design using CSS flex in @preactjs (@reactjs). Link:”

JavaScript { Part 14.2 : Libraries } – codeburst

  • IntlThis is a global object, yes and object!
  • (More info here)Previously I said that the Intl is an object and actually most of the functionality is accessed by that object Intl, you need to remember that in order to use it and three main word methodsWhen can you use it?Actually most of the browsers support it, but to be…

Its a collection of sites where you could find awesome things in order to make better your work and not reinvent the wheel.
Continue reading “JavaScript { Part 14.2 : Libraries } – codeburst”

Bauble Toggle @CodePen @greensock @reactjs #svg #interactive #ChristmasIsComing

Bauble Toggle @CodePen  @greensock @reactjs #svg #interactive #ChristmasIsComing

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

Choose your colour! A bauble toggle made with SVG in ReactJS with GreenSock….
Continue reading “Bauble Toggle @CodePen @greensock @reactjs #svg #interactive #ChristmasIsComing”

Preact.js : Shopping Cart

@preactjs shopping cart with stock status. Link:  #preactjs #reactjs

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.


Continue reading “Preact.js : Shopping Cart”

A very simple @CodePen example for using #ReactJS Router: #Coding

A very simple @CodePen example for using #ReactJS Router:  #Coding

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

Simple page navigation using React Router v2.8.1…
Continue reading “A very simple @CodePen example for using #ReactJS Router: #Coding”

I am Loving this Jelly Fish Splash React Animation see via @CodePen #ReactJs #React

  • You can apply CSS to your Pen from any stylesheet on the web.
  • Just put a URL to it here and we’ll apply it, in the order you have them, before the CSS in the Pen itself.
  • If the stylesheet you link to has the file extension of a preprocessor, we’ll attempt to process it before applying.
  • You can also link to another Pen here, and we’ll pull the CSS from that Pen and include it.
  • If it’s using a matching preprocessor, we’ll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

Recreated https://dribbble.com/shots/2896850-Animated-DropSplash-Logo-Posibility with React and SVG…
Continue reading “I am Loving this Jelly Fish Splash React Animation see via @CodePen #ReactJs #React”