Wszystkie wpisy, których autorem jest admin

Understanding the Critical Rendering Path

Post pobrano z: Understanding the Critical Rendering Path

Ire Aderinokun:

There are 6 stages to the CRP –

  1. Constructing the DOM Tree
  2. Constructing the CSSOM Tree
  3. Running JavaScript
  4. Creating the Render Tree
  5. Generating the Layout
  6. Painting

I imagine if you’re really getting into performance work, you’ll want a firm understanding of this. There are lots of ways to block/delay parts of this process. The job of a perf nerd is to understand when and why that’s happening, evaluate if it’s necessary or not, and tweak things to get to that painting step as soon as possible.

I’m curious if this is generic enough that 100% of all rendering engines work 100% the same way, or if there are significant differences.

Direct Link to Article — Permalink


Understanding the Critical Rendering Path is a post from CSS-Tricks

How to Create a Pixel Heart With Inkscape

Post pobrano z: How to Create a Pixel Heart With Inkscape

Final product image
What You’ll Be Creating

In today’s tutorial I’ll be demonstrating how you can design a vector isometric-style heart that looks as if it’s made of pixels, using Inkscape. 

If you’re looking for premade logo templates, you can purchase one over on GraphicRiver.

1. How to Set Up a New Document

Step 1

Go to View and make sure you have Custom selected.

Inkscape view custom

Step 2

Go to View > Zoom and select Zoom 1:1 to make sure you’re zoomed in at 100%.

Inkscape view zoom

Step 3

Click on the Align and distribute objects icon in the top toolbar to open up the alignment panel. Then click on the Fill & Stroke icon in the top toolbar to open up the Colors, gradients and strokes menu.

Inkscape opened panels

Step 4

Go to File > Document Properties (Control-Shift-D) and deselect the boxes that read Show page border and Show border shadow, and then close out of that window.

Assign document properties in Inkscape

2. How to Create the Base Shape

Step 1

Grab the Create Stars and Polygons (*) tool and set the parameters in the toolbar up top to the following specs: 

  • Regular Polygon
  • Corners: 6
  • Rounded: 0.000
  • Randomized: 0.000
Inkscape stars and polygons tool

Step 2

Hold down the Control and Shift keys on your keyboard and click and drag on the canvas to create a polygon where the corners are pointing vertically as depicted below. 

Creating a polygon in Inkscape

Step 3

Change the color of the polygon to red and bring down the Opacity to 50% using the Opacity Percentage tool in the Fill and Stroke panel.

Make the polygon red

Step 4

Grab the Select tool (F1) and turn on the lock icon between the W and H fields in the top toolbar. Then, change the value of the W box to 300 and press Enter to establish the width of the polygon as 300 pixels. After that, turn on the Snap to cusp nodes box in the Enable snapping toolbar at the very top of the window. 

Lock the proportions and set the width

Step 5

Right-click on the polygon and select Duplicate (Control-D) to create another copy. Make that copy blue, and then click and drag the new polygon and snap the corners of it to the lower left corners of the red polygon.

Make duplicate copy and turn it blue

Step 6

Right-click the blue copy and select Duplicate (Control-D) to create another copy. Make that copy green, and then snap the corners of it to the lower right corners of the red polygon.

All 3 polygons

Step 7

Right-click the green polygon and select Duplicate (Control-D) to create one more copy. Change the color to black, and snap the corners of it to the center of the three colored polygons as depicted below.

All 4 copies of the polygons

3. How to Trim Down the Base Shape

Step 1

Right-click on the black polygon and select Duplicate (Control-D) to create another copy, and with that copy selected, hold Shift on the keyboard and click on the blue polygon. With them both selected, go to Path > Intersection. You should end up with the following:

Intersection of the black and blue polygons

Step 2

Now we have to do the same with the red and green polygons. So right-click on the black polygon again and select Duplicate (Control-D), hold Shift and click on the red polygon, and then again go to Path > Intersection.

Intersected area of the black and red polygons

Step 3

Click on the black polygon, hold Shift and click on the green polygon, and then go to Path > Intersection. You should end up with a three-part polygon in three different colors.

Three piece polygon

4. How to Color the Shapes

Step 1

Click and drag over all three shapes to select all objects (Control-Alt-A), and then use the Opacity % slider to bring the opacity back up to 100%.

Solid fill polygon

Step 2

Click off of the objects to deselect everything, and then select the blue portion of the polygon. With it selected, go over to the Fill and stroke panel, and under the Fill tab, change the RGBA value to ff2a2aff.

Change the color to red
Changed color to red

Step 3

Select the red object at the top of the polygon, and then go over to the Fill and stroke panel, and under the Fill tab, change the RGBA value to ffaaaaff.

Updated polygon color

Step 4

Select the green object on the right side of the polygon, and then go over to the Fill and stroke panel, and under the Fill tab, change the RGBA value to 800000ff.

Fully colored in polygon

Step 5

Click and drag over all three shapes to select all objects (Control-Alt-A), and then Group (Control-G) them together and change the value of the W box to 100 and press Enter to establish the width of the polygon as 100 pixels. 

Polygon size changed to 100 pixels

5. How to Create the Heart Shape

Step 1

With the polygon selected, Right-click on it and select Duplicate (Control-D), and then snap it onto the top left corners of the original polygon.

Snap polygon number 1

Step 2

Repeat the process with the duplicated polygon so that you have three polygons stacked in the following order:

Snap polygon number 2

Step 3

Repeat the process one more time with the most recently duplicated polygon, and then Duplicate (Control-D) it one more time and snap it directly above the previous polygon.

Snap polygon number 3

Step 4

Duplicate (Control-D) the most recently selected polygon and snap it onto the upper right corners of the previous polygon.

Snap polygon step number 4

Step 5

Duplicate (Control-D) that polygon and snap it onto the lower right corners of the previous polygon.

Snap polygon step number 5

Step 6

Duplicate (Control-D) the most recent polygon, and then snap it onto the bottom right corners of the polygon beneath it.

The heart is now halfway completed

We now have half of the heart completed. 

Step 7

Returning to the original polygon at the very bottom, Duplicate (Control-D) that three times and snap the copies onto the top right corners of each other in ascending order.

Beginning to construct the right side of the heart

Step 8

With the most recently duplicated polygon still selected, Duplicate (Control-D) it and snap it directly above the original polygon.

Snap polygon step number 8

Step 9

Duplicate (Control-D) that polygon again and snap it onto the upper right corners of the polygon on the left side.

Snap polygon step number 9

Step 10

Finally, Duplicate (Control-D) the polygon one more time and snap it onto the lower right corners of the previous polygon.

Awesome Work, You’re Now Done!

And with that, our design is complete! We’ve successfully created a pixel heart using Inkscape.

Completed pixel heart design with Inkscape

Free, faster.

Post pobrano z: Free, faster.

Ethan Marcotte, on time- and budget-constrained organizations websites:

Between the urgency of their work and the size of their resources, spending months on a full redesign isn’t something they can afford to do. Given that, a free theme for, say, WordPress can yield a considerable amount of value, especially to budget-constrained organizations. They can launch their redesign more quickly, and continue reaching the people who need their information most.

So Ethan takes a look at a bunch of free themes, so at least a responsible choice can be made there, and finds

the results were surprising: on a 3G connection, the slower themes I tested took anywhere from 45-90 seconds for any content to appear. In other words, the pages took roughly a minute before they were usable.

Pretty rough.

What I find particularly scary is that these are just empty themes. I usually attribute the slowness of sites in this category (off the shelf, slap-a-CMS on it) to be what happens on top of the theme. Stuff like uploading too many/too large of images and installing a million plugins that load their own set of resources.

I think it shows off some recent technology in a new light: saving us from ourselves. HTTP/2 makes concatenating resources less important, and that’s saving us from ourselves and those million plugins individual CSS and JavaScript files. WordPress does responsive images by default now, that’s saving us from ourselves and ensuring we aren’t loading more image than we need. AMP, as a technology, is saying y’all have lost the plot here and we need to save you from yourselves.

Direct Link to Article — Permalink


Free, faster. is a post from CSS-Tricks

Skittles Romance the Rainbow

Post pobrano z: Skittles Romance the Rainbow

Mars has released Skittles Romance, a commercial designed for viewing during the 2017 Super Bowl game. The Skittles Romance commercial features a lovesick young man using Skittles to get a girl’s attention through her bedroom window. Katie is in her room making the most of his persistence, along with her parents, and some unexpected guests.

Skittles Romance the Rainbow - Katie

Skittles Romance Credits

The Skittles Romance campaign was developed at adam&eveDDB by chief creative officer Richard Brim, creative director Dan Fisher, creative Till Diestel, head of integrated production Matt Craigie Atherton, agency producer Cat Reynolds, head of planning Jessica Lovell, senior planner David Mortimer, managing partner Fiona McArthur, business director Robbie Black, account director Brittany Lippett, account director Matt Dankis, account managers Holly Fletcher and Josh Edwards.

Media was handled at Mediacom/Starcom.

Filmming was shot by director Harold Einstein via Outsider with director of photography Glynn Speeckaert, executive producer Richard Packer and producer Eric Liney.

Editor was Mark Edinoff at Work Editorial with assistant editor Jamie Hodgson.

Post production was done at The Mill by executive producer Alex Fitzgerald, producers Kirsty Ratcliffe, Tim Lyall, Anastasia von Rahl, shoot supervisor Tim Davies, 2D lead artists Gareth Brannan, Gary Driver, 2D artists Joseph Tang, Jeanette Eiternes, Brad Wood, Online Artists: David Wishart, George Rockliffe, motion graphics team Rajinder Davsi and Kwok Fung Lam, colourist Seamus O’Kane, producers Alex Fitzgerald and Kirsty Ratcliffe.

Audio post production was done at Factory Studios by audio engineer Jack Hallett.