Wednesday, August 1, 2018

SOFIA MILOS

Sofia Milos’ Official web site


by csreladm via CSSREEL | CSS Website Awards | World best websites | website design awards | CSS Gallery

A Practical Guide to CSS Variables (Custom Properties)

Preprocessors like Sass and Less certainly help to keep your CSS codebase organized and maintainable. Features like variables, mixins, loops, etc. — by adding dynamic capabilities to CSS coding — contribute to minimize repetition and speed up your development time.

In recent years, a few dynamic features have started to make their appearance as part of the CSS language itself. CSS variables — or “custom properties”, as they're officially called — are already here and have great browser support, while CSS mixins are currently in the works.

In this article, you'll find out how you can start integrating CSS variables into your CSS development workflow to make your stylesheets more maintainable and DRY (Don't Repeat Yourself).

Let's dive right in!

What are CSS Variables?

If you've used any programming language, you're already familiar with the concept of a variable. Variables let you store and update values your program needs in order to work.

For instance, consider the following JavaScript snippet:

[code language="js"]
let number1 = 2;
let number2 = 3;
let total = number1 + number2;
console.log(total); // 5
number1 = 4;
total = number1 + number2;
console.log(total); // 7
[/code]

number1 and number2 are two variables which store the number 2 and 3 respectively.

total is also a variable which stores the sum of the number1 and number2 variables, in this case resulting in the value 5. You can dynamically change the value of these variables and use the updated value anywhere in your program. In the snippet above, I update the value of number1 to 4 and when I perform the addition again using the same variables, the result stored inside total is no longer 5 but 7.

The beauty of variables is that they let you store your value in one place and update it on the fly for a number of various purposes. No need for you to add new entities with different values all over your program: all value updates happen using the same storage place, i.e., your variable.

CSS is mostly a declarative language, lacking in dynamic capabilities. You'd say that having variables in CSS would almost be a contradiction in terms. If front-end development were just about semantics, it would be. Fortunately, the languages of the Web are very much like living languages, which evolve and adapt according to the surrounding environment and the needs of their practitioners. CSS is no exception.

In short, variables have now become an exciting reality in the world of CSS, and as you'll soon see for yourself, this awesome new technology is pretty straightforward to learn and use.

Are There Benefits to Using CSS Variables?

The benefits of using variables in CSS are not that much different from those of using variables in programming languages.

Here's what the spec has to say about this:

[Using CSS variables] makes it easier to read large files, as seemingly-arbitrary values now have informative names, and makes editing such files much easier and less error-prone, as one only has to change the value once, in the custom property, and the change will propagate to all uses of that variable automatically.

W3C Specification.

In other words:

By naming your variables in ways that make sense to you in relation to your project, it'll be easier for you to manage and maintain your code. For example, editing the primary color in your project will be much easier when what you need to change is one value for the --primary-color CSS custom property, rather than change that value inside multiple CSS properties in various places.

What's the Difference Between CSS Variables and Preprocessor Variables?

One way you might have been taking advantage of the flexibility of variables when styling websites is by using preprocessors like Sass and Less.

Preprocessors let you set variables and use them in functions, loops, mathematical operations, etc. Does this mean CSS variables are irrelevant?

Not quite, mainly because CSS variables are something different from preprocessor variables.

The differences spring from the fact that CSS variables are live CSS properties running in the browser, while preprocessor variables get compiled into regular CSS code, therefore the browser knows nothing about them.

What this means is that you can update CSS variables in a stylesheet document, inside inline style attributes and SVG presentational attributes, or choose to manipulate them on the fly using JavaScript. You can't do any of this with preprocessor variables. This opens up a whole world of possibilities!

This is not to say that you need to choose between one or the other: nothing will stop you from taking advantage of the super powers of both CSS and preprocessor variables working together.

The post A Practical Guide to CSS Variables (Custom Properties) appeared first on SitePoint.


by Maria Antonietta Perna via SitePoint

Facebook's Video Ad Metrics Got A New Update

Facebook rolled out an update regarding the brands using video ads on the platform. These changes are made to the metrics available to those brands. People get to rewatch and rewind parts of the video that they either liked or skipped through, the company is making some changes in the metrics like...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Mehwish Mehmood via Digital Information World

How to Select the Right Copywriting Gig on Fiverr for Marketing Copy

This article was created in partnership with Fiverr. Thank you for supporting the partners who make SitePoint possible.

In this article, we are going to educate SitePoint readers on how to select the right gig on Fiverr for marketing copy.

As a worldwide verified freelancing platform, Fiverr is a 100% safe and productive site where you can buy and sell services. Boasting one of the fastest customer service departments available today, Fiverr's team immediately responds to questions and inquiries for a seamless customer usability experience.

In this guide you will learn:

  • The top tips for success when shopping around Fiverr
  • How to select blogging, email, and editing gigs
  • How to select a marketing copy gig that is right for you
  • Pros and cons of cheap versus expensive Fiverr writers

The Top Tips for Success When Shopping Around Fiverr

We are going to go over how to select the right gig every time when shopping on Fiverr.

/1. Be realistic about your expectations regarding the price you need to pay for a required writing job. Quality work costs more, even at Fiverr. Although it's still more affordable than any other freelancing marketplace, you're not going to get published on Forbes, or publish a high-quality e-book with custom illustrations, if you don't invest several hundred dollars.

Think of Fiverr as your go-to marketplace where you can always find the most affordable deals on writing services and more. Projects range from short blog post editing that will cost you only a few bucks, to top quality e-book writing services that will cost you several hundred dollars.

/2. Know how to clearly communicate. A good and bad point of Fiverr is that it's a global marketplace with every nationality selling and buying services. That means you need to be able to clearly articulate what it is that you want, in basic English, without the complexities.

If you can't clearly explain what it is that you need, do not try and outsource the project. That's a sign that you need to go back to the drawing board and reevaluate what it is that you need, first and foremost. When approaching a freelancer, you need to have an adept understanding of the task at hand, and the details required to make it happen.

It's ok to be a pain – the writers expect it. Now is the time to be safe, rather than sorry, and get all the information out in the open. It's up to the writer if they want to take on the task or not.

Be comprehensive.

Selecting Blogging, Emailing, and Editing Gigs

Now that you're ready to address your marketing copy, first understand that there are a variety of gigs out there related to content marketing. You can work on a press release, e-mail copy, newsletter, blog, product description, website page, and the list goes on.

For the sake of this piece, we're going to look at the 3 most important marketing copy gigs for our business: blogging, emailing, and editing & proofreading.

1. Blog writing gigs

Blogs are applicable for B2C, B2B, and personal posts, providing brands with an easy way to communicate a message, announcement, or feature to their followers. You want to find a writer that matches your personal style.

Within basic gigs, you can reasonably expect a Fiverr writer to provide 100-300 word blog posts, with titles and references.

When communicating with these writers regarding your blog, we recommend you use the following steps to ensure they have everything they need to write an awesome blog for you:

Your Blog URL: Firstly, send the writer your blog URL. They need to be able to familiarize themselves with your blog tone. Your blog might be informal with a little humor, or it could be incredibly serious and fact-based. Your ghostwriter will know how to take on your tone, but they need the right information first to make it happen.

If you don't have an existing blog, do your best to find at least 1-2 links to other blogs that have the tone you want. Your blog writer is not a mind-reader, and needs some kind of starting point in understanding your overall goal. The more examples you can provide them, the better.

Your Topic: Although blog writers can come up with completely original topics just based on your industry, if you do have a topic in mind, now is the time to communicate it to them (and not after the blog has been written). Let's say you own a social media management company. There is plenty to write on, but where do you want them to begin? Are you looking for more conversions regarding your SEO service? Tell the blog writer you want a blog on the benefits of SEO with a call-to-action at the end pushing the reader to sign up for your SEO services.

Although some of this might seem self-explanatory, be sure to articulate exactly what topic you want if that's your end goal. If not, you can let the blog writer do their thing.

Any Secret Specifications: When we find reliable Fiverr providers, it can be easy to assume they know how to do everything. Ghostwriters can select topics, research them, and write amazing marketing copy for your business. However, they can't know that your company is only six months old and doesn't actually provide SEO services (but will in two months). These secret specifications need to be communicated from the onset. It's not fair to surprise them after the entire blog has been crafted.

2. Email copy gigs

Email copy gigs on Fiverr will help you draft one or multiple emails for luring customers and patrons to your website.

Within the basic gigs, providers on Fiverr will vet your platform and draft up one or two emails that you can send to your subscriber list.

If you explore gig add-ons, email writers can write a series of emails, with release dates, so you continue to string on your leads.

3. Editing & proofreading gigs

A variety of editors are able to provide rewrites, proofing for grammar, syntax, spelling, and capitalization, as well as feedback on the copy.

Within the basic gigs, editors will proofread up to 1k or 2k words on your behalf, tracking their changes in a Word document. You can choose to accept or reject the changes, as well as request that a tracked changes and accepted changes document is provided at the end of the order.

How to Select a Marketing Copy Gig That Is Right for You

Now that we've explored the types of marketing copy gigs available to you on Fiverr, we're going to look at 5 steps for selecting the right marketing copy gig. There are many writers and editors available to you through the site, so where do you begin? How do you weed out the faulty providers? Here are our recommendations.

1. Reviews

As a review-based platform, you want to use Fiverr's publicly stated reviews to your advantage. If a gig only has 2 reviews, and one of them is not 5 stars, chances are you're not going to gamble. But if you see a gig with 300 reviews and a 5 star average, you know you're working with a serious provider.

The post How to Select the Right Copywriting Gig on Fiverr for Marketing Copy appeared first on SitePoint.


by SitePoint Team via SitePoint

The Trick to Viewport Units on Mobile

#351 — August 1, 2018

Read on the Web

Frontend Focus

Priority Nav Scroller: Priority+ Navigation in a Horizontal Scrollable Container — A practical navigational element if you have a large number of category links to show. Comes as an ES6 module but a compiled version is also included.

Nigel O Toole

Implementing a 'Double Click' Link with Pure CSS — A pretty neat trick using hidden link elements/CSS transitions to create links and other elements that only operate when double clicked. It even worked on mobile (for me).

Martijn Cuppens

New Course: 💯 Complete Intro to Web Development, v2 — More than an introductory course, this is a totally revamped, modern intro course where you'll go from building your first website to having the foundations for becoming a professional web developer.

Frontend Masters sponsor

Logical Styling Based on the Number of Given Elements — Ready to learn some true CSS trickery? Here’s a practical look at a few ways to use CSS’s support for logic and condition-based styling (e.g. take one approach if there are fewer or more than x elements).

Una Kravets

The Trick to Viewport Units on Mobile — Notches, scrollbars, navigational elements.. they can all interfere with your use of the vw and vh viewport units. CSS custom properties to the rescue!

Louis Hoebregts

Building A Progressive Web App: No React, No Angular, No Vue — Just direct DOM manipulation with some more recent APIs and JS specs.

Florian Rappl

Logging Activity with the Web Beacon API — The Beacon API is a Web API (supported by all major browsers) that provides an efficient way for data to be asynchronously sent from a page back to a server for logging purposes.

Drew McLellan

On CSS Standards and CSS Exclusions — Front-end developers share some responsibility in getting new Web features implemented, if only by using and trying newer (and potentially buggy) features as they appear in clients. CSS Exclusions, as covered here, is one such example.

Chen Hui Jing

💻 Jobs

Frontend Developer at X-Team (Remote) — We help our developers keep learning and growing every day. Unleash your potential. Work from anywhere. Join X-Team.

x-team

Find A FrontEnd Job Through Vettery — Create a profile to connect with 4,000+ companies seeking top tech talent.

Vettery

📘 Tutorials

Creating Animated Radial Progress Bars with SVG, CSS & Vue.js

Nathan Cockerill

Making Legacy Sites More Performant with Modern Frontend Techniques — How to use developer tools to identify and fix frontend performance bottlenecks on your legacy sites.

Mike Herchel

Five Steps to Speed Up Your Image Heavy Website

Brandon Morelli

▶  Learn How to Use CodePen with One Of Its Co-Founders — A 20 minute guide to productively using CodePen, the online HTML/JS/CSS code editor and playground.

Chris Coyier

Speed Up Alignment in CSS with Flexbox Utility Classes

Sebastiano Guerriero

Online & Evening M.S. in Software Engineering. 3 Specializations Available — Advanced understanding of Java™, C# and Swift, JavaScript, HTML, and CSS. Web, Java or mobile software specializations.

Regis University sponsor

▶  Two User Experience Psychology and Performance Videos — Smashing Magazine have shared two videos from their recent conference, one with Ilya Grigorik talking about UX on the Web, and the other about the role of psychology in UX.

Smashing Magazine

Sometimes the 'sizes' Attribute is Quite Important — Some tips on being more efficient with your responsive images.

Chris Coyier

What You Need To Know When Converting a Flash Game to HTML5 — If you’re still needing to covert an old Flash game over to work in the new frontend environment (anyone?), here are some tips.

Tomasz Grajewski

Using SSE Instead Of WebSockets For Unidirectional Data Flow Over HTTP/2

Martin Chaov

🔧 Code and Tools

CSS Duotone Generator — Bring in an image, apply effects, and then generate the HTML and CSS you need to reproduce it on a page.

Rick Metzger

Developer Tools for Every Customer Session – New in FullStory

Fullstory sponsor

Between.js: Lightweight JavaScript Tweening LibraryDemos here.

Alexander Buzin

FormStorage: Keep Form Data Stored Locally After Submission

steelydylan

Epic Spinners — A collection of customizable, easy to use animated spinners, available as Vue components.

Epicmax


by via Frontend Focus

Life Hacks: 12 Happiness and Wellness Practices Around the World (infographic)

Between computers, smartphones, tablets, and televisions, we live in an increasingly digital world. We’re spending 8, 10, even 12 hours or more each day, in front of a screen! While we’re happy to embrace technology, it’s becoming more and more important that you unplug and recharge your own body’s...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Irfan Ahmad via Digital Information World

Introducing Feedback for Coffee – my new Landing Page critique series

 

Feedback for Coffee is my new Landing Page critique series. Everything is linked below including the takeaways. Please drop me a comment with feedback on the length/depth/audio/slides/scrolling – it’s an experimental format I want to improve – much appreciated!

Want to be a part of the new series? Send Coffee!

Chapters

Landing Page Takeaways

  1. Set an objective before you start building your Landing Page
  2. Embed forms directly in your Landing Page
  3. Intro Landing Page copy should identify with a user problem
  4. Testimonials should highlight your service features
  5. Testimonials should answer potential user doubts
  6. Remove unfinished sections in your Landing Page
  7. Use error checking instead of disabling fields
  8. Spice up your Sign Up buttons
  9. Link to proactive Social Accounts to show progress
  10. Avoid specific dates within Launching Soon Landing Pages
  11. Don’t assume users will scroll the whole Landing Page
  12. Position your first CTA above the fold

by Rob Hope @robhope via One Page Love