Saturday, June 21

Tag: Web

Fixed Elements And Overlays In XD: Incredibly Easy And Fun Methods For Your Prototypes
Web Tricks

Fixed Elements And Overlays In XD: Incredibly Easy And Fun Methods For Your Prototypes

Fixed Elements And Overlays In XD: Incredibly Easy And Fun Methods For Your PrototypesFixed Elements And Overlays In XD: Incredibly Easy And Fun Methods For Your Prototypes Manuela Langella 2018-09-18T12:30:32+02:00 2018-09-18T10:47:33+00:00 (This article is kindly sponsored by Adobe.) A fixed element is an object you set to a fixed position on the artboard, allowing other items to scroll underneath. This way, you get a realistic simulation of scrolling on desktop and mobile. With the new overlay feature, you can simulate interactions such as lightbox effects and submenus. How do famous brands use fixed elements and overlays? Well, let’s take a look at some ex...
Web Tricks

5 Tips to Write Better Conditionals in JavaScript

When working with JavaScript, we deal a lot with conditionals, here are the 5 tips for you to write better / cleaner conditionals. 1. Use Array.includes for Multiple Criteria Let's take a look at the example below: // condition function test(fruit) { if (fruit == 'apple' || fruit == 'strawberry') { console.log('red'); } } At first glance, the above example looks good. However, what if we get more red fruits, say cherry and cranberries? Are we going to extend the statement with more || ? We can rewrite the conditional above by using Array.includes (Array.includes) function test(fruit) { // extract conditions to array const redFruits = ['apple', 'strawberry', 'cherry', 'cranberries']; if (redFruits.includes(fruit)) { console.log('red'); } } We extract the red fruits (co...
Flexbox: How Big Is That Flexible Box?
Web Tricks

Flexbox: How Big Is That Flexible Box?

Flexbox: How Big Is That Flexible Box?Flexbox: How Big Is That Flexible Box? Rachel Andrew 2018-09-17T13:30:30+02:00 2018-09-17T11:38:35+00:00 This is the third part of my series on Flexbox. In the past two articles, we have looked at what happens when you create a flex container and explored alignment as it works in Flexbox. This time we are going to take a look at sizing. How do we control the size of our flex items, and what choices is the browser making when it controls the size? Initial Display Of Flex Items If I have a set of items, which have variable lengths of content inside, and set their parent to display: flex, the items will display as a row and ...
Loving & Hating the Hamburger Icon
Web Tricks

Loving & Hating the Hamburger Icon

I love the hamburger menu. I hate the hamburger menu. I am constantly contradicting myself about this tiny website element; whether I think it works beautifully…or just makes a mess. And I’m not alone. While this icon has exploded in popularity, there’s still significant debate as to whether it is the right choice for tucking navigation menus into websites. It’s a debate I have with myself (and team) every time we approach a new project as well. Because while I love the simplicity of the hamburger menu and the clean canvas it provides, there are some lurking usability issues that just keep nagging me. That’s why I have a distinct love-hate relationship with the hamburger menu. Love: Clean Design Canvas The extra space provided by using a hamburger menu icon can create a cleaner, sleeker, ...
Popular Design News of the Week: September 10, 2018 – September 16, 2018
Web Tricks

Popular Design News of the Week: September 10, 2018 – September 16, 2018

Every week users submit a lot of interesting stuff on our sister site Webdesigner News, highlighting great content from around the web that can be of interest to web designers.  The best way to keep track of all the great stories and news being posted is simply to check out the Webdesigner News site, however, in case you missed some here’s a quick and useful compilation of the most popular designer news that we curated from the past week. Note that this is only a very small selection of the links that were posted, so don’t miss out and subscribe to our newsletter and follow the site daily for all the news. Chrome’s New Design – A UX Perspective   This is What the Apple iPhone 11 Could Look like   Trendy Palettes – Free and Open Collection of Color Palettes, Updated Daily   Taking Owner...
Infographic: The Future of E-Commerce
Web Tricks

Infographic: The Future of E-Commerce

Worldwide, retail e-commerce sales totaled $2.29 trillion last year. By the end of this year they’ll have reached $2.8 trillion. If the trend continues apace, e-commerce sales will reach a whopping $4.479 trillion by 2021. The message is clear: Consumers love the convenience of e-commerce; the reduced prices compared to real world stores, with their real world overheads; the greater range of products. With a simple click, or tap, you can buy or subscribe to almost any product or service. Never has impulse buying been so easy. It’s clear that e-commerce will continue to grow as a sector. But what exactly will it look like in the coming months and years? Add Realistic Chalk and Sketch Lettering Effects with Sketch’it – only $5! Source p img {display...
Web Tricks

Monthly Web Development Update 9/2018: Native Lazy Loading And Imaginary Work

Monthly Web Development Update 9/2018: Native Lazy Loading And Imaginary WorkMonthly Web Development Update 9/2018: Native Lazy Loading And Imaginary Work Anselm Hannemann 2018-09-14T14:50:19+02:00 2018-09-14T13:06:51+00:00 It’s an interesting concept to compare JavaScript with CO2 and yet a very valid one. Alex Russel who works for the Chrome team and has a lot of insights into the current state of the web says that using too much JavaScript or using it exclusively (without progressive enhancement/graceful degradation) will have the same effect as too much CO2 for the ecosystem on planet Earth — the ecosystem will fall apart. And just like we need a certain am...
Moving from NodeJS to Go
Web Tricks

Moving from NodeJS to Go

The approach of this article is this: You are a seasoned NodeJS developer, and are looking to learn a new language, but you don't want to go deep, just see how things compare with your current expertise, and then make a final decision. Chances are, you were initially a PHP developer, then you found your way into NodeJS and now you feel like you want to expand your expertise. Of course I might be wrong, but in this article we are going to look at some common patterns when working with NodeJS and how they compare in Go. Prerequisites Approach Since this is a NodeJS to Go comparison, we're going to focus on language constructs and servers. We'll break it down like this: Why Go The most common reasons to learn Go include the following: We see that Go has only 25 keywords, and this can give you...
Uber Unveils Simple New Rebrand
Web Tricks

Uber Unveils Simple New Rebrand

A little less than three years ago, Uber rebranded as the cab-service of choice for dystopian sci-fi pac-man fans. It was a move reportedly intended to recast the startup as the choice of every day people; it actually stripped the brand of all personal connections. This week, a little less than three years longer than it should have waited, Uber have unveiled a far more coherent, far more appealing identity. Designed by the “Uber Brand Experience” team alongside Wolff Olins, the rebrand does an excellent job of correcting the obvious deficiencies in the previous identity. As a corporation—they’re really no longer a startup—Uber is globally recognized; from name-drops in Netflix series, to street signs in Rome (mis)informing potential customers of heavy fines for using the service, you’ll...
Smashing Book 6 Is Here: New Frontiers In Web Design
Web Tricks

Smashing Book 6 Is Here: New Frontiers In Web Design

Smashing Book 6 Is Here: New Frontiers In Web DesignSmashing Book 6 Is Here: New Frontiers In Web Design Vitaly Friedman 2018-09-13T13:25:00+02:00 2018-09-13T21:39:43+00:00 Imagine you were living in a perfect world. A world where everybody has fast, stable and unthrottled connections, reliable and powerful devices, exquisite screens, and capable, resilient browsers. The screens are diverse in size and pixel density, yet our interfaces adapt to varying conditions swiftly and seamlessly. What a glorious time for all of us — designers, developers, senior Webpack configurators and everybody in-between — to be alive, wouldn’t you agree? Well, we all know that the ...
30 Tools and Services That Boost Productivity
Web Tricks

30 Tools and Services That Boost Productivity

The market is overcrowded with web tools and services, today it’s easy to launch your own product and everybody is playing the game. It’s good to have competition but some of these solutions are far from being excellent in terms of functionality, safety, and support, but the pricing is the same as premium solutions, so it’s hard to judge which to use. Testing them all, and picking the best takes time and money. That’s why we’ve handpicked a collection of excellent web tools and services from different fields: logo and website builders, analytics and feedback, landing page creators, and much more. Check these 30 tools and services that will boost productivity. 1. Tailor Social – The Smarter Social Media Management Tool Tailor Social, gives you the tools to take your social media to the nex...
Styling Broken Images
Web Tricks

Styling Broken Images

Images should add that extra touch of beauty to your site. But what happens when the image fails to load? You end up with this annoying looking icon: Nobody want this on their website. Luckily, there's a fall back option that will make our page retain it's pretty look. Let's get started with styling broken images. Getting Started Now how do we create a custom style for our broken images? Before jumping into styling a broken image we first need to understand a few things about the <img> tag. Regular typography styles : These styles are applied to the alternate text (alt). It only shows up when the image is broken. If the image happens to load as expected then the alternate text and its styling will be ignored altogether. This doesn't mean we wasted our time to style it, since we actu...
Web Tricks

The Importance Of Manual Accessibility Testing

The Importance Of Manual Accessibility TestingThe Importance Of Manual Accessibility Testing Eric Bailey 2018-09-12T13:30:55+02:00 2018-09-12T12:04:44+00:00 Earlier this year, a man drove his car into a lake after following directions from a smartphone app that helps drivers navigate by issuing turn-by-turn directions. Unfortunately, the app’s programming did not include instructions to avoid roads that turn into boat launches. From the perspective of the app, it did exactly what it was programmed to do, i.e. to find the most optimal route from point A to point B given the information made available to it. From the perspective of the man, it failed him by not ...
How to Recover Abandoned ECommerce Carts
Web Tricks

How to Recover Abandoned ECommerce Carts


If WordPress is the world’s favorite blogging platform, then WooCommerce is surely the most popular e-commerce solution available. WooCommerce is currently leading the WordPress e-commerce market and in popularity exceeds its nearest rivals—Shopify and Magento—roughly 4 times over. In this post we’ll learn how to capture and recover abandoned shopping carts in WooCommerce and how to create a successful abandoned cart recovery email. But before we dive in, let’s quickly look at what cart abandonment is, and how we can reduce it in the first instance. What is Shopping Cart Abandonment? Shopping cart abandonment is an e-commerce term that is used to define the action when a visitor adds items to their shopping cart and then decides to leave the website without completing a purchase—they li...
Web Tricks

Javascript's three dots ( … ): Spread vs rest operators

Javascript's ECMA6 came out with some cool new features; ... is one of these new Javascript functionalities. It can be used in two different ways; as a spread operator OR as a rest parameter. Rest parameter: collects all remaining elements into an array. Spread operator: allows iterables( arrays / objects / strings ) to be expanded into single arguments/elements. In this article we will look into these two ways of using ...; keeping it short and sweet as usual. Enjoy! Rest parameters From the definition we saw earlier, rest parameters collect all the remaining elements into an array. This allows us to do really neat function definitions. Let's see how we put them to use. function add(x, y) { return x + y; } add(1, 2, 3, 4, 5) // returns 3 The above function call returns 3, this is becau...