TEN THINGS TRENDING


Sara Soueidan

1. Clipping in CSS and SVG – The clip-path Property and Element

“CSS and SVG have a lot in common. A lot of the features that we have in CSS today were imported from SVG. One of these features is the Clipping operation. Both CSS and SVG allow us to ‘clip’ elements into custom non-rectangular shapes. In this article we will go over the clipping techniques in both CSS and SVG, covering everything you need to know to get started.”

Clip-path Property in CSS.


Cssweekly

2. Issue #119 | CSS Weekly

"Clipping in CSS and SVG – The clip-path Property and Element

Sara Soueidan

Clipping in CSS and SVG – The clip-path Property and Element

See Previous article

Fading Effects Using Blend Modes
Ion Rosca shows how to blend an element with the content behind it by using the mix-blend-mode property.

Articles & Tutorials

Smart Fixed Navigation

Sebastiano Guerriero demonstrates a fixed navigation that allows your users to access the menu at any time while they are experiencing your website. It’s smaller than a full-width fixed header, and replaces the back-to-top button with an interesting UX solution.

Optimising for 60fps Everywhere

In this post JT is focussing on the performance aspects related to achieving smooth animations without visual delay.

Authoring Critical Above-the-Fold CSS

Ben Edwards explains how to create a simple Sass @mixin that allows you to designate bits of CSS as being “critical” – the idea being to load that critical CSS first and defer the loading of the rest of the CSS until later.

Recreating the Touch Ripple Effect as Seen on Google Design

Jonathan Cutrell recreates the touch ripple effect that can be seen on Google’s Material Design.

“RWD Is Bad for Performance” or Is Good for Performance

Responsive design just can’t seem to shake the rumor that it’s bad for performance. This, as Tim Kadlec explains, can actually be good for performance.

Recommended Conference

Online CSS & Sass Conference

The CSS Summit is full of tips and practical knowledge to build your skills and master the Web’s language of design. Join us online July 15—17, 2014! Follow & tweet at @CSSWeekly with hashtag #csssummit and favorite CSS or Sass tip for a chance to win free ticket. Save 20% off with discount code CSSWEEKLY

Tools

ApplePie Toolkit is modular and responsive CSS framework. It gives you tools and approach to build your frontend faster, keep your code maintainable, easy to read and standard-based.

CSS Colorguard is a tool that allows you to keep a watchful eye on your CSS colors. It helps you maintain the color set that you want, and warns you when colors you’ve added are too similar to ones that already exist.

Inspiration

Origami Penguin

Chris Ota demonstrates how easy it is to create an impressive origami penguin with a couple of simple CSS rules."


CSS TRICKS

3. Authoring Critical Above-the-Fold CSS | CSS-Tricks

Google PageSpeed Insights and my web pages; it was a match made in heaven, until things changed… PageSpeed started telling me I needed to optimise my CSS delivery, that my CSS files were render-blocking, that none of the above-the-fold content of my page could render without waiting for those files to load, and that I should in-line the critical portions of those files directly into my HTML.”


4. Remove an Element | CSS-Tricks

"For whatever reason, an element can’t destroy itself in JavaScript. jQuery has a method for this, which is nice because this is how we think:

$(‘.remove-me’).remove();
But there is no direct equivalent in JavaScript. Instead you’ll need to select the parent element and use removeChild."


5. Loop Over querySelectorAll Matches | CSS-Tricks

"You can loop over Arrays really easily in JavaScript with forEach, but unfortunately it’s not that simple with the results of a querySelectorAll.

/* Will Not Work */
document.querySelectorAll(‘.module’).forEach(function(){

});
That’s because what you get back from querySelectorAll isn’t an Array, it’s a (non-live) NodeList."


6. the_category with Excludes | CSS-Tricks

"The WordPress function the_category doesn’t offer an exclude parameter. This does:

function exclude_post_categories($excl=’‘, $spacer=’ ‘) {
$categories = get_the_category($post->ID);
if (!empty($categories)) {
$exclude = $excl;
$exclude = explode(’,‘, $exclude);
$thecount = count(get_the_category()) – count($exclude);
foreach ($categories as $cat) {
$html = ’‘;
if (!in_array($cat->cat_ID, $exclude)) {
$html .= ’<a href=’’ . get_category_link($cat->cat_ID) . ’’ ‘;
$html .= ‘title=’’ . $cat->cat_name . ’‘>’ . $cat->cat_name . ‘’;
if ($thecount > 1) {
$html .= $spacer;
}
$thecount–;
echo $html;
}
}
}
}
Plus as long as you have that, you can alter the output however you want which is nice."


Smashing Magazine

7. Prioritizing Devices: Testing And Responsive Web Design

"My Android Galaxy smartphone is so sweet. It plays games, has a lovely screen and lets me check all of my favorite websites while I’m commuting to and from work. And my new iPad is even better; it’s all I use at home when I’m relaxing in the living room, cooking in the kitchen or toileting on the toilet. As a consumer of electronic gadgets, I’m happier than Angelina Jolie in an orphanage with all of the devices with which I can use to access the Internet.

As a developer, I hate it."


Apple Insider

8.

IOS Market Share 20140715

“After being available for ten months, Apple’s iOS 7 is still growing and is now running on 90 percent of iPhones, iPads and iPods visiting the App Store, up from 87 percent in April.”

Android would love to crack 30%.


Macworld

9. How to restore deleted Safari bookmarks | Macworld

"Reader Aaron Drake did the bad thing with his bookmarks and would like to undo his actions. He writes:

‘I recently went on a cleaning binge and as part of it I wiped out what I thought were unnecessary Safari bookmarks. A couple of days later I realized that I need some of them. I have a Time Machine backup but don’t know where to find the old bookmarks. Help!!’
Since you asked so nicely, sure. Follow along.

In the Finder, hold down the Option key and choose Go > Library. (The Library entry won’t appear unless you hold down Option.) In the now-visible Library window open the Safari folder. Inside you’ll spy the Bookmarks.plist file. This is where Safari stores its bookmarks."

Getting into the Library is still a bit of a pain. That’s where all the goodness lives.


10. How to create a Screen Sharing shortcut | Macworld

"Reader Jim Mullen seeks a swifter way to screen share. He writes:

I use a Mac mini as a media center connected to my TV. Because I use it to store and play my media, I routinely screen share to it from my iMac to copy media from one to the other. But the process is so cumbersome—selecting the mini in a Finder window’s sidebar, clicking Share Screen, and then logging onto the Mac. There must be a faster way!
There is, and you’re going to love it. Try this:

For the last time, use the method you’ve used in the past to share the Mac mini’s screen with your iMac. When the mini’s window appears take a gander at the shared screen’s title bar where it says something like Jim’s Mac mini and drag the icon that appears just to the left of that name to your iMac’s desktop. A VNC alias file will be copied to that self-same desktop."