Wednesday, February 1, 2017

Tilt.js – Tiny Parallax Tilt Hover Effect for jQuery

Tilt.js is a tiny requestAnimationFrame powered 60+fps lightweight parallax tilt effect for jQuery.


by via jQuery-Plugins.net RSS Feed

Turn Your Side Project into a Full-Time Gig: Tips from Hacking UI

Based in Israel, David Tinter is one-half of the masterminds behind Hacking UI and Side Project Accelerator, two hugely successful projects aimed to inform, inspire and showcase the evolving world of technology. The other half of the creative duo is Sagi Schreiber, whom Tinter met when they both joined as co-founders of another startup called Moolta.

While Hacking UI serves as a digital magazine, along with its own podcast series and a newsletter released regularly, Side Project Accelerator is an eight-week course that teaches you how to turn your side project into a full time gig - a dream held by many emerging entrepreneurs.

Tinter said that the “lightbulb moment” to construct Hacking UI came when he and Schreiber decided to create a script that exported SVG files from Photoshop. At the time, there was no solution to this never-ending dilemma which frustrated both designers and developers, so of course, the two tech entrepreneurs took matters into their own hands.

“We wrote the script, as well as a couple of articles about it and our workflow, releasing it publicly for free download,” he said.

Continue reading %Turn Your Side Project into a Full-Time Gig: Tips from Hacking UI%


by Aleczander Gamboa via SitePoint

Java’s Switch Statement in Three Minutes

Java's switch statement allows the comfortable selection of one of many execution paths based on a variable's value. The variable must either be an enum, a String, or an integral type like int. Given to switch, it is compared with a list of case labels that each specify a value - as soon as the first one matches, the corresponding statement block is executed. The switch statement works much like a long if-else-if chain and can often be used to replace it.

This article only requires working knowledge of integers and strings but the more you know about if and particularly if-else-if the more you will get out of it. Experience with other numeric types, enums and methods are a bonus.

Using switch

Let's jump right in and start with an example! The following switch statement writes a textual representation of the first three natural numbers to the console:

// any number is fine
int number = 2;
switch (number) {
    case 0:
        System.out.println("zero");
        break;
    case 1:
        System.out.println("one");
        break;
    case 2:
        System.out.println("two");
        break;
    default:
        System.out.println("many");
        break;
}

Just from looking at it, what do you think will happen?

The switch will look at number, which is currently 2, and compare it with each of the values behind the case keywords. It's not 0, it's not 1, it's 2. Bingo! So off it goes calling System.out.println("two").

Syntax of switch

You can use the switch statement with variables of type int, byte, short, char (note that long does not work), String, or an enum (or enumeration type as they are formally called). Here's how it works:

switch (<variable>) {
    case <value>:
        // statements
        break;
    case <other-value>:
        // statements
        break;
    case <more-values>:
        // statements
        break;
    default:
        // statements
        break;
}

You use the keyword switch followed by the variable you want to switch over (as it is commonly phrased) and a pair of curly braces. Inside those curly braces, you list as many branches as you like.

Each regular branch consists of the keyword case, a value that matches the variable's type (meaning it could be assigned to it), and a colon. Together, these three things are called a switch label. It is followed by the statements you want to execute if the variable has that particular value. Unless you have a very good reason, every switch-branch should end in a break. (I'll explain in a minute, why.)

If you need a branch that is executed if none of the labels matched, you can create one with default. It works much like a regular branch but takes no value.

Fall-Through

Continue reading %Java’s Switch Statement in Three Minutes%


by Nicolai Parlog via SitePoint

Mastering Complex Lists with the Android RecyclerView

The RecyclerView was introduced with Google’s material design in Android 5.0 Lollipop.

If you are getting started with Android development or are already an experienced developer the RecyclerView is something worth investigating.

The idea of view recycling has been in Android since version 1 in the form of the ListView. The idea is simple, to present large collection of data using a small collection of views, by recycling and rebinding these views.

Continue reading %Mastering Complex Lists with the Android RecyclerView%


by Valdio Veliu via SitePoint

This Week's HTML5, CSS and Browser Tech News #275

Read this e-mail on the Web
FrontEnd Focus
Issue 275 — February 1, 2017
“We’re excited to announce the preview availability of the WebRTC 1.0 API and support for the H.264/AVC and VP8 video codecs for RTC in Microsoft Edge.”
Microsoft

A beginner-friendly Webpack 2 tutorial showing how to set up and configure Webpack to transform and bundle all your frontend assets.
Mark Brown

Nitish Kumar digs into the workings of the auto-placement algorithm in the CSS Grid Layout module.
Sitepoint

Frontend Masters
Uncover how to think deeply about new ES6 JavaScript features like arrow functions, destructuring, generators, classes and computed properties with Kyle Simpson of the "You Don't Know JS" book series!
Frontend Masters   Sponsor

Greg Hovanesyan documents and showcases a ton of interesting CSS properties and values. You may find some handy new solutions to old problems here.
CSS Tricks

Are you using the full capabilities of modern OpenType fonts from your CSS? Chris Lilley runs through their potential in this dotCSS talk. 19 minutes.
Chris Lilley

Chrome now has new page reloading behavior which maximizes the reuse of cached resources, results in lower latency, power consumption, and data usage. Shift + Reload will still work as before, luckily.
Google

If you are not an npm expert but want to learn more, Louis Lazaris created a great beginners’ guide to npm for front-end developers.
Louis Lazaris

Uses Service Workers in the browser to let you set up a mock API without using any servers at all.
Service Mocker

Baljeet Rathi demonstrates writing element queries using the EQCSS plugin. Element queries are similar to media queries but based on the properties of individual elements (e.g. its width).
Sitepoint

Jobs Supported by Hired.com

Can't find the right job? Want companies to apply to you? Try Hired.com.

In Brief

Web Components Remote Conf: February 16-17, 2017 news
An online conference with 16 great sounding Web Components talks.

Learn to develop your next web or mobile application with ReactJS. 
Register for Rangle’s React online training course for developers on February 7, free of cost!
Rangle.io  Sponsor

Implementing 'Save For Offline' with Service Workers tutorial
The offline web experience we’re providing users is something we all need to start thinking about. Una runs through how to get started.
Una Kravets

Align SVG Icons to Text and Say Goodbye to Font Icons tutorial
A scalable solution for solving the alignment issues of SVGs.
Elliot Dahl

'ack' for CSS Developers: A Command Line Tool You Could Find Useful tutorial
Harry Roberts

A Clean Responsive Web Design Menu Tutorial using CSS, HTML, and jQuery tutorial
Alex Caldwell

Building a Morphing Hamburger Menu with CSS tutorial
Luis Manuel

Ensuring CSS Animations Run and Stop Gracefully tutorial
Tommy Marshall

A Basic Introduction to CSS's Attribute Selectors tutorial
Tiffany Brown

Source Maps with webpack in Chrome tutorial
Erik Aybar

Executing Millions of SQL Statements in Milliseconds in the Browser with WebAssembly and Web Workers tutorial
Mike Parsons

Beware of Mixed Content and Responsive Images tutorial
Images defined in a ‘picture’ element on an encrypted page (i.e. https) will not load if they are served from an unencrypted context (i.e. http).
Jonathan Snook

Polyfills: Everything You Ever Wanted to Know (Maybe) tutorial
David Gilbertson

[Whitepaper] The Future of JavaScript—2017 and Beyond 
2017 predictions for the key and rising JavaScript libraries and frameworks and JS’s New Frontiers in this whitepaper.
Progress  Sponsor

Working with Vertically-Written East Asian Languages and CSS Grid video
Chen Hui Jing

gotem: 'Copy to Clipboard' for Modern Browsers in Under 1KB tools
Michael Cavalea

qart.js: Merges Pictures and QR Codes for Artistic QR Codes code
Clever, I’m surprised the output worked (I tested it!)
Lee Sun-Hyoup

keyframes-tool: Convert CSS Animations for the Web Animations API code
A tool that converts CSS Animations to a keyframes object suitable for the Web Animations API.

Parasail: A Minimal Sass and Flexbox-Oriented CSS Framework code

multi.js: A User-Friendly Replacement for 'select' Boxes with the 'multiple' Attribute Enabled code
Fabian Lindfors

Animography Text Editor: A Text Input Field With Animated Letters demo
CodePen

Curated by Peter Cooper and published by Cooperpress. If you like this, you may also enjoy: JavaScript Weekly, Node Weekly, and React Status.

Stop getting FrontEnd Focus : Change email address : Read this issue on the Web

© Cooper Press Ltd. Office 30, Lincoln Way, Louth, LN11 0LS, UK


by via FrontEnd Focus

6 Email Hacks Guaranteed to Boost Results from Your Email Efforts

According to the Direct Marketing Association you can expect a ROI of 1 you spend on email marketing. The effectiveness of email is also corroborated by data from Monetate, based on an analysis of 500 million shopping experiences, that found that email out-converts both search and social media traffic combined.

That said, it is also worth establishing that over 2.5 million emails are sent every single second. People are overwhelmed with email, and unless you smarten up and refine your techniques, you’ll only get limited results. Below are six email hacks guaranteed to boost results from your email efforts:

1. Use Segmented Emailing over “Batch and Blast” Emailing

[author_more]

[/author_more]

For most businesses, their approach to email marketing involves having a single email list that they build very actively – they then send them same offers, the same blog posts and the same messages to this single list. Not only is this an old way to do email marketing, but it has been proven to be downright ineffective.

In a study analyzing the impact of segmented emailing, MarketingSherpa found that it is possible to boost sales by up to 208 percent simply by sending an email to a segmented portion of your list instead of sending “batch and blast” emails.

You can segment based on several factors; you can segment based on location, gender, interests, frequency of subscriber purchase, as well as a host of other factors.

2. Optimize the Timing of Your Emails: Research has shown that there’s a best day and time to send emails. According to data from Experian’s benchmark report, Monday is the best weekday to send emails if you want high transaction rates and the best revenue per email while Sunday is the best weekend day to send emails. In terms of opens and clicks, a study by GetResponse found that Tuesdays have the highest open and clickthrough rates. In terms of the best time to send an email, most studies suggest sending your email between 10 and 11 a.m.

That said, several factors influence email opens; for example, the location of your subscribers matter a great deal, 10 a.m in California is different from 10 a.m. in Florida or 10 a.m. in Germany, and you have to factor all these in when emailing. If you have an email service provider that let’s you automatically send emails at the local time of individual subscribers, be sure to make use of that feature. Email service providers like AWeber, Getresponse and MailChimp make it easy to optimize and send your emails based on timezone.

3. Retarget Prospects in Ads Based on Email Opens

Does familiarity breed contempt or content? I think the answer to this question can be found in an experiment conducted in 1968 by a professor at Oregon State University.

The professor, Charles Goetzinger, in an attempt to see whether familiarity breeds content or contempt, had a student come to his class in a large black bag – with only the student’s feet visible. The professor then monitored the reaction of the class. Initially, students treated the black bag with hostility. Over time, however – due to repeated exposure – they started to treat the bag with curiosity. Eventually, they developed friendship with the bag. This is explained by a psychology principle called the “mere-exposure effect” or the “familiarity principle.” Marketers dub the same principle “the rule of 7.” It says that more exposure to your offer will increase reception to it.

When someone opens your email, even if they do not click your links or take the action you want them to, they are already familiar with your name and your brand; when they’ve opened a few emails from you, retargeting them in ads with relevant offers is likely to yield results due to the familiarity principle. In fact, this is so effective that research shows it can boost conversions by up to 400 percent.

4. Follow Up Exactly After 48 Hours

When is the right time to follow up? Many of us are even afraid to follow up because we don’t want to be a bother, and when we do follow up we do it ineffectively. What if research has the answer to maximizing results from your follow ups? Well, it does. According to a USC Viterbi School of Engineering study, that analyzed 16 billion emails from 2 million users, 90 percent of people will either respond to an email within 48 hours or never. In essence, you should assume that most people won’t be responding to your email after 48 hours.

Based on this study, it is recommended to send your follow up exactly after 48 hours; this way, the initial email is still fresh in your prospect’s mind and there is a high chance that they will respond. If still no response, you can consider using the 3-7-7 formula developed based on this research.

If you’re sending marketing emails to a newsletter, you can further take advantage of this fact by segmenting unopens for every email you send; monitor your emails to see which people haven’t opened your email after 48 hours, segment them and email them again. In fact, I recently published a list of email software providers that will allow you to segment unopens. Here are some tips:

  • Wait at least 48 to 72 hours before sending your follow up.

  • Make it clear in your follow up that you’re following up based on a previous message you had sent.

  • Modify the title of your follow up email; that could have something to do with why it wasn’t opened in the first place.

5. Fine-Tune Your Emails for Mobile Devices: It’s a well-established fact that mobile-only visits have now surpassed desktop-only visits, and Google made waves a while back when they started penalizing sites not optimized for mobile users. Most businesses are optimized for mobile users, until it gets to their email marketing.

Not optimizing your emails for mobile devices is costing you a lot of sales; in fact, a particular study found that a whopping 75 percent of emails that can’t be read on Smartphones are deleted. Check to make sure that your email service provider has an option to optimize emails for mobile devices; most importantly, test every email on a mobile device before you send it.

Continue reading %6 Email Hacks Guaranteed to Boost Results from Your Email Efforts%


by John Stevens via SitePoint

More HTML5 Semantics: Changes to Existing Features

The following is an extract from our book, HTML5 & CSS3 for the Real World, 2nd Edition, written by Alexis Goldstein, Louis Lazaris, and Estelle Weyl. Copies are sold in stores worldwide, or you can buy it in ebook form here. While new elements and APIs have been the primary focus of HTML5, this latest […]

Continue reading %More HTML5 Semantics: Changes to Existing Features%


by Louis Lazaris via SitePoint