Animations and transitions on the web are cool and all, they can make the UI feel snappier and responsive (if used judiciously). However there are problems with motion like this. A whole lot of people are sensitive to motion and you don't want your site to cause motion sickness and dizziness, right?
Luckily, most modern browsers now support prefers-reduced-motion
CSS media query. Which means you can skip animations for people who don't want them.
An example of supporting opt-out in CSS:
@media (prefers-reduced-motion: reduce) {
.widget {
animation: none;
}
}
Or opt-in:
@media (prefers-reduced-motion: no-preference) {
.widget {
animation: 3s slidein;
}
}
To test on a Mac, search for "accessibility" to find the preference panel, click Display and check the Reduce motion box (see here for other operating systems).
Well, how about taking care of accessibility and performance? How about putting all the animations and transitions and keyframes CSS code in a separate file and loading it only if people don't mind animations? Wouldn't it be nice to save some bytes? And how? Easy.
You can detect the preference with JavaScript too, using:
const pref = window.matchMedia('(prefers-reduced-motion: no-preference)');
Now pref.matches
is true
if it's ok to use motion and you can load that extra CSS file that has all the animations and transitions.
So what about legacy browsers without this media query? My vote is: no animations. But if yours is: yes, animations, you can detect if the browser even understands the media query. matchMedia
returns an object that contains the media too. Try this in your console:
>> window.matchMedia('(prefers-reduced-motion: no-preference)')
MediaQueryList { media: "(prefers-reduced-motion: no-preference)", matches: false, onchange: null }
If the browser doesn't understand the query it will return "not all" in the media
property.
>> window.matchMedia('(omg: bacon)')
MediaQueryList { media: "not all", matches: false, onchange: null }
To wrap it up, I'd do something like:
<link href="css.css" type="text/css" rel="stylesheet">
<script>
if (window.matchMedia('(prefers-reduced-motion: no-preference)').matches) {
const link = document.createElement('link');
link.type = "text/css";
link.rel = "stylesheet"
link.href = "animations.css";
document.head.appendChild(link);
}
</script>
But if you want to be sure that old browsers do get animations, you can do:
<link href="css.css" type="text/css" rel="stylesheet">
<script>
const media = "(prefers-reduced-motion: reduce)";
const pref = window.matchMedia(media);
if (pref.media !== media && !pref.matches) {
const link = document.createElement('link');
link.type = "text/css";
link.rel = "stylesheet"
link.href = "animations.css";
document.head.appendChild(link);
}
</script>
C'est tout! See you next time!
As per the latest study by Persistence Market Research (PMR), the global weight loss dietary supplements market is anticipated to witness healthy growth. The market is likely to register 6.0% CAGR throughout the forecast period 2017-2026. The global weight loss dietary supplements market is also estimated to bring in US$ 37,177.6 million revenue by 2026 end.
Get Sample Copy of Report @ https://www.persistencemarketresearch.com/samples/20380
With obesity becoming a global health concern, weight loss continues to be one of the most focused areas. Hence, increasing number of companies are coming up with the new products in weight loss supplements. The increasing consumption and demand for weight loss dietary supplements, regulations on the production of these supplements along with ingredients used are also gaining traction in various countries. The government in various countries are also focusing on the quality and quantity of ingredients used and if any of these ingredients can have severe side-effects, affecting the health of the consumers negatively.
Increasing use of Natural and Organic Ingredients in the Weight Loss Dietary Supplements
The negative effects of being obese and overweight are resulting in the increasing use of weight management products. Consumers are also adopting weight loss supplements in forms of pill, liquid, and powder. Hence, with the increase in the use of these supplements, manufacturers are also trying to produce safer products, thereby using organic and natural ingredients and plant-based ingredients. Among various ingredients, green tea extract is considered as one of the most popular and safest ingredients in the weight loss dietary supplements. Similarly, Garcinia cambogia is also being considered as an ingredient in the weight loss supplements. However, these ingredients have been reported to have adverse effects like a headache, constipation, UTI. Hence, there has been an increase in the investment in the research on other organic ingredients that can be used to produce weight loss supplements.
Global Weight Loss Dietary Supplements Market: Segmental Insights
The global weight loss dietary supplements market includes various segments such as end-user, form, ingredients, distribution channel, and region. Based on the form, the market is categorized into powder, liquid, and soft gell/pills. Soft gell/pills are expected to dominate the market during the forecast period. By the end of 2026, soft gell/pills are expected to exceed US$ 18,500 million revenue.
Based on the end-user, the segment consists of men, women and senior citizen. Among these, women are expected to be the largest users of weight loss dietary supplements. Women segment as the end-user is estimated to create an incremental opportunity of more than US$ 7,900 million between 2017 and 2026.
By Distribution Channel, pharmacies drug store is expected to emerge as the largest distribution channel for the weight loss dietary supplements. Pharmacies drug store is estimated to account for more than one-third of the revenue share by the end of 2017.
Based on the ingredients, the segment consists of amino acids, vitamins minerals, botanical supplements, and others. Vitamins minerals are expected to emerge as one of the largest used ingredients in the weight loss dietary supplements. By the end of 2026, vitamins minerals are estimated to exceed US$ 16,900 million revenue.
Region-wise, the market is categorized into Europe, North America, Asia Pacific Excluding Japan (APEJ), Latin America, Japan, and the Middle East and Africa (MEA). Among the given regions, North America is expected to dominate the global weight loss dietary supplements market throughout the forecast period 2017-2026.
Request Customization of this Report @ https://www.persistencemarketresearch.com/request-customization/20380
Global Weight Loss Dietary Supplements Market: Competitive Assessment
Key players in the global weight loss dietary supplements market are Amway (Nutrilite), Abott Laboratories, GlaxoSmithKline, Glanbia, Herbalife International, Pfizer, American Health, Stepan, Nature’s Sunshine Products, and FANCL.
Establishing a good relationship with your customers is a crucial step in ensuring your business’ success. A good way to accomplish this is to show them you’re around when they need you, whether it’s to give them the latest updates about your brand or something as simple as answering questions about your products and services.
But paying attention to each and every one of your customers becomes more challenging the larger your clientele becomes. To ensure that nobody gets left out, you can turn to chatbots and email marketing, analyzing which works best for your business.
Chatbots: A Program You Can Talk To
A chatbot is a computer program that is capable of conversing with and responding to human users. The technology is relatively young, so its full potential is still being explored. Basic chatbots can provide preset responses to certain questions, often through an if-then approach, but advanced versions can provide more customized answers and solutions.
Suppose you want to buy something online. Traditionally, you’d have to browse through multiple product pages to find the item you need. With a chatbot, you can ask a question about your desired item and the program will take you directly to relevant product pages. It’s like having your very own shopping assistant.
Image Source
There are many advantages to using chatbots, not only for your business, but also for your customers. Here are some of them:
Better customer service – At the end of the day, chatbots are all about improving user experience. A survey says that more than 80 percent of customers expect assistance during shopping – and they need it within five minutes. Chatbots are designed to provide fast, real-time assistance by offering content and links that your customers may access to find and purchase the products they need.
Higher Net Promoter Score (NPS) – NPS indicates the likelihood that your customers will promote your brand to their peers. One of its most important determiners is customer satisfaction. Many customers are delighted by a business’ quick response, even if their issue isn’t completely resolved. Prompt assistance makes them feel valued, so they become more likely to speak positively to their family and friends about your brand.
Easy and cheap maintenance – Chatbots are easy to configure according to your business’ unique needs. Maintaining them doesn’t require much effort and resources either. For instance, they don’t cost as much as paying one of your staff members to be available 24/7 to entertain and engage your customers.
Accurate consumer data monitoring – Chatbots do more than respond to your customers. They also collect feedback and other insights that you can use to improve your product or service. The data collected by chatbots can also help you monitor your customers’ needs, gauge interest in products and services or specific features, and boost the effectiveness of your marketing efforts.
Image Source
Time savings – You can use bots to send messages to all your clients at the same time. Even as a growing business, you probably have way more customers than you can send messages to manually within a day. A chatbot simplifies the process, saves you a lot of time, and ensures that messages are delivered when needed.
Compatibility with messenger apps – Nobody wants to download and install apps they’ll probably use once and won’t use again. This is why people usually stick to certain apps that get the job done. For instance, most people prefer to use popular messenger apps like Facebook Messenger, WhatsApp, and Viber instead of downloading new ones every so often.
Chatbots are highly compatible with most messenger apps, allowing you to send messages through the media your customers actually use. In fact, chatbots are compatible with most social networks, too, which means you can also use them to improve the effectiveness of your social media strategy.
Increased in-app purchases – If you offer products that your customers can purchase through messaging apps, you can use chatbots to encourage higher sales. Analyze your customers’ buying behavior and program your chatbots to take advantage of any trend or opportunity to sell.
Image Source
Email Marketing: It Still Works
Despite being around for decades, email remains to be a crucial communication channel, and the data proves it. For instance, people sent 1.8 million more emails in 2017 than they did in 2016. And in 2018, 281 billion emails were sent and received daily around the world.
The continued relevance of email marketing rests on its many advantages, which include the following:
Targeted messages thru segmented lists – It’s great to be able to reach out to a lot of people, but it’s even better if your messages reach those who actually need and are likely to respond to them. Email marketers can segment their lists to ensure that only those who meet certain criteria receive a particular message.
With a large number of emails an average person receives in a day, making sure your content is relevant to them is an excellent way to getting noticed in your customer inbox. This tactic is known to increase engagements, making it effective for purposes ranging from spreading awareness about your brand to being an effective tool to grow your ecommerce business with email marketing.
Image Source
Revenue growth– With the right subject line, dynamic content, and call-to-action, it’s possible to influence email readers to purchase your product. When paired with the right targeting strategy, email marketing can be one of the best tools to generate sales from impulse purchases.
Multi-device compatibility – People read their emails on multiple devices, which means you can reach your customers no matter what device they may use. Make sure you optimize your emails for all screens for the best results.
Message testing – Your email is only as good as its content, but it can be hard to create the perfect email on your first try. The good thing about email marketing is that you can send out several versions of the same email to test which ones are the most effective. The feedback you gain may be incorporated to your content marketing strategy to improve your outcomes moving forward.
Lead generation – Many of those who receive your emails won’t make a purchase, but that doesn’t mean your efforts are wasted. By using your succeeding emails to check on them or update them about your products, you can foster a relationship with these leads and eventually convert them into paying customers.
Relationship maintenance – Just because a purchase has been made doesn’t mean you relationship with your customer has ended. Using email, you can keep the relationship going. With the right push, you may turn a one-time buyer into a loyal customer who will stick to your brand long-term.
Email or Chatbots?
Now on to the big question: does your business need chatbots or email marketing more? Without a doubt, both email and chatbots have their strengths and weaknesses, requiring an analysis of which could help your business more.
Chatbots offers quick and highly personalized service to users. It is also entirely driven by consent – your customers absolutely won’t have to use it unless they choose to. Because of this, chatbots tend to generate higher click-through rates and conversion rates. To compare, emails have a CTR of only 4% on average, while chatbots generate up to a whopping 16%.
Chatbots are also not known to send spam messages, which tend to fill up email inboxes and annoy users. Because of this, customers are more likely to read messages you send them via messenger apps.
However, emails are a lot cheaper than chatbots. If you were to look at the two services in the market, you’d see that both of them actually have almost similar price points. The difference is that email, having been around longer, offers more choices in terms of providers. Some email services charge nothing up to a certain number of messages sent, meaning you can send out marketing assets without spending a single cent.
Messenger apps may be popular, but not everyone uses them. People older than 55 tend to use emails more than they do messenger apps. That said, chatbots are generally better for businesses with younger customers, but email marketing is able to reach out to customers of any age.
Chatbots are a developing technology and it is exciting how they will improve in the future. Email, on the other hand, seems like it isn’t going anywhere soon. Find out what each option’s strengths and limitations are and choose which one offers the most benefits to your business. Better yet, why don’t you use both?
The post Chatbots vs Email Marketing: Which Is the Best for Your Business? appeared first on Speckyboy Design Magazine.
In 1998 RFC2295 was published. It’s experimental, and meant to introduce
a new way to do content negotiation in HTTP. As far as I personally know, I
don’t think it got a lot of traction.
Traditionally, when a HTTP client wants to do content-negotation, they will
send one or more accept headers:
GET / HTTP/1.1
Accept: text/html; image/png; text/*; q=0.9
Accept-Language: en-CA; en
Accept-Charset: UTF-8
Accept-Encoding: gzip, brotli
RFC2295 intended to introduce a new way to do this, with a lot more
flexibility and features. The RFC talks about selecting specific variants
not just based on mimetype, but also html features a browser supports,
color capabilities, screen resolution, speed preference, paper size for
printers and even selecting content for specific devices like VR goggles
and PDA’s.
An interesting feature is that it can also return a list of urls for specific
variations, changing the HTTP model a bit by giving every representation and
variant their own url, and returning all this in with a
300 Multiple Choices
response.
An example of such a response (from the RFC):
HTTP/1.1 300 Multiple Choices
Date: Tue, 11 Jun 1996 20:02:21 GMT
TCN: list
Alternates: {"paper.1" 0.9 {type text/html} {language en}},
{"paper.2" 0.7 {type text/html} {language fr}},
{"paper.3" 1.0 {type application/postscript}
{language en}}
Vary: negotiate, accept, accept-language
ETag: "blah;1234"
Cache-control: max-age=86400
Content-Type: text/html
Content-Length: 227
<h2>Multiple Choices:</h2>
<ul>
<li><a href=paper.1>html, English version</a>
<li><a href=paper.2>html, French version</a>
<li><a href=paper.3>Postscript, English version</a>
</ul>
The RFC introduces a new error code: 506 Variant Also Negotiates
.
To the best of my understanding, this error returned when a server is
misconfigured and a ‘negotiating resource’ is pointing to another resource
that doesn’t serve a representation, but instead also tries to negotiate.
I can imagine that a negotiating resource could for example point to itself,
or sets up something like a redirection look. I think 506 is a specific
error that a server could return for this case.
Should you use this?
I often include a section that answers whether you should use this status
code. In this case, I think it’s better to dive into whether you should
support the negotiation feature.
The issue with the feature is that it never left the experimental phase, and
as far as I know got very little adoption. It was defined before HTTP/1.1 was
finalized, and for all intents and purposes I think it can be considered dead.
However, it solves a couple of really interesting problems that aren’t solved
Truncated by Planet PHP, read more at the original (another 1323 bytes)