Archive

Archive for February, 2021

Let’s Create a Custom Audio Player

February 18th, 2021 No comments
Showing a black audio player with muted orange controls, including options to jump or rewind 30 seconds on each side of a giant play button, which sits on top of a timeline showing the audio current time and duration at both ends of the timeline, and an option to set the audio speed in the middle.

HTML has a built-in native audio player interface that we get simply using the element. Point it to a sound file and that’s all there is to it. We even get to specify multiple files for better browser support, as well as a little CSS flexibility to style things up, like giving the audio player a border, some rounded corners, and maybe a little padding and margin.

But even with all that… the rendered audio player itself can look a little, you know, plain.

Did you know it’s possible to create a custom audio player? Of course we can! While the default player is great in many cases, having a custom player might suit you better, like if you run a podcast and an audio player is the key element on a website for the podcast. Check out the sweet custom player Chris and Dave set up over at the ShopTalk Show website.

The audio player fits in seamlessly with other elements on the page, sporting controls that complement the overall design.

We’re going to take stab at making our own player in this post. So, put on your headphones, crank up some music, and let’s get to work!

The elements of an audio player

First, let’s examine the default HTML audio players that some of the popular browsers provide.

Google Chrome, Opera, and Microsoft Edge
Blink
Mozilla Firefox
Firefox
Internet Explorer
Internet Explorer

If our goal is to match the functionality of these examples, then we need to make sure our player has:

  • a play/pause button,
  • a seek slider,
  • the current time indicator,
  • the duration of the sound file,
  • a way to mute the audio, and
  • a volume control slider.

Let’s say this is the design we’re aiming for:

We’re not going for anything too fancy here: just a proof of concept sorta thing that we can use to demonstrate how to make something different than what default HTML provides.

Basic markup, styling and scripts for each element

We should first go through the semantic HTML elements of the player before we start building features and styling things. We have plenty of elements to work with here based on the elements we just listed above.

Play/pause button

I think the HTML element appropriate for this button is the

Categories: Designing, Others Tags:

Barebones CSS for Fluid Images

February 18th, 2021 No comments

Zach takes a look at some fundamental HTML+CSS usage for fluid, responsive images. Most of it, I’d say, is what you’d expect, but things get weird when srcset gets involved.

I poked my way through, and in addition to the weird thing Zach noted, wanted to add one more thing. Let’s start like this:

<img src="./img.jpg" alt="" />

With no other CSS involved, this renders at the “intrinsic size” of the image. Say the original image is 400px wide, it renders 400px wide.

We should be putting width and height attributes on images, because it allows the browser to make space for them even before they are downloaded (even when they are fluid, which is super cool). So:

<img src="./img.jpg" alt="" width="400" height="300" />

Also nothing terribly weird there. Even if we slap max-width: 100% in the CSS, that’ll do what we want: preserving space, behave fluidly, and not growing bigger than it should.

But let’s hold off on the max-width: 100% thing for a second. If we just use srcset and set up multiple sources.

<img src="./img.jpg" alt=""
     srcset="./img-200.jpg 200w, ./img-400.jpg 200w" />

BAM, we blow out the width of the thing.

That won’t render at 200px or 400px—it’ll actually render at 100vw, believe it or not. I think that’s because that’s the default sizes value. I normally think of the sizes attribute as not information about anything to do with actual layout, but just information for the browser to choose a source. But that’s not true here. It really does effect layout (in all browsers I tested). Here’s proof:

CodePen Embed Fallback

See the little one below it where all I change is the sizes.

Anyway that’s not what Zach honed in on, but it’s similar. Let’s put back the responsible thing and add in width and height attributes.

<img src="./img.jpg" alt="" width="200" height="137"
     srcset="./img-200.jpg 200w, ./img-400.jpg 200w" />

No more blowout (with or without sizes) but now we have a new weird problem. This is basically like saying max-width: 200px. Even though we have sources that are wider than 200px, we’ve capped the width at 200px. Zach puts it like:

Using max-width: 100% constrains the image to the container, but be careful when you use this with srcset—it may cap smaller than you want when using [width]! Pair with width: auto to fix this.

Zach’s final snippet is this, which I think reigns in all the weirdness:

img {
  max-width: 100%;
}
img[width] {
  width: auto; /* Defer to max-width */
}
img[width][height] {
  height: auto; /* Preserve aspect ratio */
}

/* Let SVG scale without boundaries */
img[src$=".svg"] {
  width: 100%;
  height: auto;
  max-width: none;
}

Direct Link to ArticlePermalink


The post Barebones CSS for Fluid Images appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

Categories: Designing, Others Tags:

Poll: Is Minimalism a Dead Trend Walking?

February 18th, 2021 No comments

Since the skeuomorphism of the early 00s, the design trend of choice has been minimalism. In fact, minimalism has been de rigueur for substantially longer than that.

You can make a fair case that minimalism was the defining theme of the 20th century. Beginning with the widespread adoption of grotesque typefaces in mass advertising the century before, continuing through the less-is-more philosophies of the middle part of the century, and culminating in the luxury of 80s and 90s consumerism.

Minimalism has been central to the design practice of almost every designer that we recognize as a designer. It underpins the definition of the discipline itself.

With the weight of such illustrious history, it’s no wonder that the fledgling web — and in the scale of history, the web is still a very new phenomenon — adopted minimalism.

And then there’s the fact that a minimalist approach works on the web. Multiple viewports, multiple connection speeds, multiple user journeys, all of these things are so much easier to handle if you reduce the number of visual components that have to adapt to each context.

And yet, despite this, an increasing number of designers are abandoning minimalism in favor of a more flamboyant approach where form is function. It’s clearly happening. What’s not clear is whether this is a short-lived, stylistic fad or something altogether more fundamental. In other words, are designers about to abandon grids, or are they just slapping some gradients on an otherwise minimal design?

?

Featured image via Pexels.

Source

The post Poll: Is Minimalism a Dead Trend Walking? first appeared on Webdesigner Depot.

Categories: Designing, Others Tags:

Design of Healthcare App

February 18th, 2021 No comments

Health is one of the major concerns of today’s world. We are living in a fast-paced world where going to the gym every day seems a challenge. But tracking one’s health status is not that much difficult.

There are lots of mobile health applications that you can use to track your everyday health status. With countless health apps already in the market, healthcare providers’ major challenge is to develop a mobile health app that functions well, looks organized, can be sustained, and is out of the box.

According to Zion Market Research, the global mhealth market size is expected to reach $102.43 billion by 2022. The base of smartphone users is growing tremendously. There are roughly 4.66 billion people worldwide using the internet at the start of 2021 – that’s close to 60 percent of the world’s total population. This clearly shows that the app market is not going to slow down.

If we talk about designing a healthcare app, it is not an easy task. It needs creativity, patience, and a lot of planning and research.

Here in this write-up, we discuss the challenges that one can face while making a mobile healthcare app and what you should keep in mind before and after design. Keep reading till the end to get an insight into the mhealth design world.

Challenges in Healthcare app design

Creating a revolutionary health app is not an easy task. And when it comes to designing a healthcare app with proper functionality, many challenges come in the way that is essential to address. Here are some of the challenges that you might face on the way to app designing:

Explanation to patients

Clear, precise, and timely communication is essential for building the physician-patient relationship and delivering quality patient care. When you design a healthcare app, explanations to patients regarding their health issue needs to be considered primarily.

Although app-based communication cannot match the level of face-to-face communication, you should try and incorporate features that make app-based communication easy.

It will be best to include features like allowing the users to ask questions and assistance when needed.

Delivering distressing information

Healthy communication can speed up the healing process, and doctors usually try to be empathetic and convey the information with sensitivity to support the users. The same thing goes for mobile healthcare apps; it is essential to use motivation and mind refreshing messages to boost the patient mood.

Establishing credibility

Many of us prefer to visit the doctor and have face-to-face interaction when facing any health problem. This is because a real doctor is commonly considered more authoritative than a mobile app.

Users would not like to use a healthcare app that doesn’t provide them authoritative information. Thus, it is essential to provide the relevant source when you provide any health information in the application. This will help in gaining patient’s trust and enhance Patient care.

Let’s know how to design a health care app.

How to design a health care app?

If you are eager to create something for people, then your passion and zeal contribute a lot. Designing a healthcare app needs proper market research; you need to examine how other app creators do their designing.

This will provide you a brief idea about what kind of features you have to incorporate in your app design. Let’s understand what you should keep in mind before and after the design.

Before you start the design

There are two factors that you have to consider:

Do user Research

To design purposeful mobile healthcare apps, the team needs to understand users’ needs and expectations. These will help implement the best design and technical solutions to achieve the desired User Experience. User research is an essential step before starting the design sprint because it will make your process easy.

To design purposeful mobile healthcare apps, developers need to understand the needs and expectations of the users and implement the best practices for designing healthcare apps to achieve the desired results. User research is one of the important steps before you start the design because it will make your process easy.

This means that you need answers to these questions:

  1. What are the pain points of the users?
  2. What do the current apps lack?
  3. Are the users satisfied with the current apps?

And more! When you have answers to these questions, you can go for the healthcare app.

Do competitors research

Before you get started on anything, you have to make sure that the things you are going to do are accurate. If you really want to create an outstanding healthcare app, then check out the other apps that provide the same services as you are planning to do. There are myriad healthcare apps through which you can get an idea.

Competitors’ research involves identifying your competitors, evaluating their strengths and weaknesses, and getting an idea about their app design. Also, to know what kind of features they have incorporated to give an outstanding user experience. You can decide the price range in which you want to offer your services in the future.

These are the basic factors you should consider before you start the design.

As you start designing

When designing a healthcare app, it is crucial to keep these five main steps in your mind.

Pay attention to clear UX and UI

If you are unaware, you should know that 88% of online consumers are less likely to return to a website after a bad experience. Every day thousands of apps are created by people, but all of them are not that good. The reason is the missing UX and UI details.

Hence, it is necessary for you to incorporate new technology into the app. You need to add better UX features and attractive and comprehensible UI elements.

So as you start designing a healthcare app, pay keen attention to clear UX and UI. The motive of a healthcare app is the transformation of hospitality. In healthcare apps, a bad user experience and a clunky design could severely impact the quality of care patients receive.

Build Clear Navigation

How one can reach you without knowing about your location, the same thing goes while designing a healthcare app. Keep your app simple and navigation straightforward to make the user experience clutter-free. Many medical apps are not user-friendly; they are packed with unorganized data. This makes navigation through all this data a challenging task for users.

In helping users find records or locations of any clinic, designers should build functional yet straightforward and simple navigation in the healthcare apps. It will save time and make the searching process convenient.

Make sure about Accessibility

When you are involved in designing a healthcare app, one vital part of the user experience is accessibility. Hence, it is necessary for you to check if your app will work well for people with disabilities like hearing, visual, physical, and more. For instance, your healthcare app should have voice assistance for someone who is blind and should contain fewer animations if the person has motion sickness.

A mobile app means users can access from anywhere and whenever they need it. And the crystal clear UX design makes users who may be new to the technology more eager and willing to adopt it. So without proper user accessibility, it will not land you with designed results.

Pay attention to colors

Colors can highly influence the UX of any app. Can you imagine a healthcare app with bright color? Not really. Paying attention to colors, especially when you are designing a health care app, is really important. We all know that the medical industry is expressed better with cold tones that are calming and soothing and don’t pull too much attention or irritate patients.

Use color in your app, which helps people in their healing. You can make use of blue, grey, white, pink, and green. These colors possess meaning in themselves and offer an eye-soothing and healing experience to users. For background, the most common color is white. If you are adding fitness aspects in the app, you can go for dark colors like navy.

Make sure about UX writing

UX design has a direct correlation with user adoption. UX writing distinguishes any health care app from the other apps. In the designing process, make sure about UX writing as it helps users to understand the information easily and conveniently. UX writing is closely related to the microcopy, which is a short text message you find in digital products’ interfaces. UX writing is all about using simple words to explain things to the users of the app.

UX writing in health care apps ensures a smooth, friction-free user journey in services that you are thinking of offering through your app.

With the help of these 5 points, you can come up with an outstanding healthcare app.

Do usability testing

The mobile market is vast and growing at a breakneck pace; if you are ready with a healthcare app, then the last step that comes into the light is usability testing. Before you think about what you will test and how you need to make a plan, this will serve as the actual test’s blueprint.

You can make a plan like this:

  • Purpose and goals of the test
  • Method ( test design )
  • Tasklist
  • Test environment, equipment, and logistics
  • Test facilitator role
  • Data to be collected and evaluation measures
  • Report content and presentation

Perform a usability test on the audience close to the target audience and gather outcomes. These will help you build and improve your app. You can segment the audience based on age, gender, location, etc.

Final Verdict

If you are reading this paragraph, you have gone through all the points mentioned above in the article. These are some of the best tips and facts you can keep in mind to create an outstanding healthcare app design. Good luck!!


Photo by National Cancer Institute on Unsplash

Categories: Others Tags:

How Can Small Businesses Utilize the Power Of AI?

February 18th, 2021 No comments

AI, the next digital revolution is providing unimaginable possibilities to every sector of the industry. Be it transportation, information technology, hospitality, healthcare, and much more, AI is making entrepreneurs prepare for what’s next to come and boost their business performances.

As technology opens the door towards data and automation, opportunities are emerging from every sphere to build new insights on businesses of all sizes and shapes. This opportunity especially helps small businesses to harness the power of AI and witness improvements in their performance exponentially. According to a survey, nearly 29.5% of small and medium business owners have talked in favor of AI and its numerous benefits on businesses.

However, AI technology isn’t just an asset for Fortune 500 companies with billions of dollars in hand. With this modern-day technology, you can aid the operations of your employees and gain a competitive advantage in your industry.

In today’s start-up era, you don’t have to be a unicorn company to enjoy the benefits and efficiency offered by AI!

So, instead of fearing robots invading humans, start recognizing AI as a way to transform your business for a better tomorrow. According to the stats given below, AI solutions can convert your small business into a screaming success:

As the figures state, AI is about making your employees more efficient and effective by allowing them to make better decisions and focus on their core competencies through developing smart tools and mobile apps. With that said, let’s have a look at numerous ways in which small businesses can utilize AI.

1. Smarter and Faster Hiring

As many small businesses don’t have a large volume of resources (Brand recognition or large networks) like big companies, the task of finding and recruiting talent is still a challenge for them. With the help of AI, they can make their hiring procedure even more lenient.

A single recruiter might not get sufficient time to evaluate each application manually in a small business. Using AI and machine learning algorithms, small businesses can determine the type of processes that result in the best possible hire.

For instance, the task of finding potential candidates, reaching out to them, and conducting an initial screening test for a specific role can be easily automated using AI. It can screen thousands of applications at once while allowing you to focus on the most promising candidates.

2. Automatic Reporting Procedure

To make sure you make important business decisions effectively, small businesses need to have a clear understanding of the data that they monitor and report. Earlier, a spreadsheet to track progress used to be more than enough as data was gathered every day.

However, now there’s a need for professional tools that can process a huge amount of information and automatically report on business processes and data. In easy words, the use of AI in reporting processes is becoming a standard in the corporate world.

Moreover, as you may already know, tracking key performance indicators and sending daily or weekly reports allows small businesses to focus on data while eliminating the additional tasks of building spreadsheets.

3. Predictions and Transforming Analytics

By using the capabilities of smart technologies, small businesses can make better and informed decisions based on their strategies backed by online analysis and advanced analytics tools that use predictive analytics models powered by AI.

The best part is that these models don’t require extensive data science skills or advanced IT knowledge to be built. Nowadays, there are several tools and software that allow you to make these models with ease.

In this way, a small business can have a clear understanding of what to expect from the future and shape its strategies accordingly to achieve higher profits and performance. The more volume of data you manage, analyze, and monitor, the better will be your business’s decision-making process.

4. Boost in Cybersecurity

As technology advances, so does the threat to security increases each day. According to various reports, 43% of cyber-attacks target small businesses, out of which within six months, 60% of small businesses victim to the attack goes out of business.

Digital data theft has become a common and most reported fraud. It is imperative for businesses of all sizes and shapes to have powerful cybersecurity. Most small businesses lack a dedicated security team, which increases the risk of cybersecurity theft.

Bringing AI together with Cybersecurity will help in removing vulnerability by analyzing the data, predicting the user behavior, understanding a pattern, and generating a dynamic, real-time, global authentication framework that modifies network access or location privileges.

5. Chatbots

Having a small business means you are more focused on streamlining marketing and customer service. To ease out things and focus on core responsibilities having a chatbot is a good option.

Many companies are partnering with chatbot development agencies for making use of bots through AI in mobile app development because the majority of people use chats in place of calls. Having chatbots helps in understanding the customers and their requirements, and if in any case, a chatbot does not understand the questions posed by customers, then it can be redirected to the team who is into customer support.

AI-enabled chatbots are not only used in customer retention but are also used in increasing sales by providing products and guiding customers through the website.

AI is the Future

Artificial Intelligence helps reduce manual work and supports humans by enhancing their productivity. With that said, it’s essential for small businesses to use machine learning in their business procedures by developing tools and using AI in mobile app development.

Tools powered by AI can do repetitive jobs in very little time without much effort. Moreover, it’s also very helpful in the marketing of your products and services. There are several AI-based tools that help you to decide on an appropriate marketing budget based on data and insights. Another significant benefit of AI for small business is that it provides them an edge over their competitors in the market and helps them gain insights over their rivals to strategize their way to the marketing of their brand and stand different in the herding crowd.

Categories: Others Tags:

You want…

February 17th, 2021 No comments

I’ve been enjoying these little “You want…” style posts. Post titles like that are a little more… forceful for my normal taste, but I like the spirit of sharing a best practice that perhaps isn’t well-known-enough.

Got an idea along these lines? You should blog it! Here or elsewhere.


The post You want… appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

Categories: Designing, Others Tags:

Things You Can Do With CSS Today

February 17th, 2021 No comments

Some nice coverage from Andy about CSS things that are truly new. If you haven’t looked at new things in CSS in, say, a year, I’d bet pretty much all of this will be new to you. A lot of it is cutting-edge enough that you might not be able to get it into projects immediately, but that gap is getting pretty short these days. Rough guess, I’d say a year and we’ll be using all this stuff without much thought.

  • Masonry layout (e.g. grid-template-rows: masonry;) which I think was a terribly clever way to approach this long-awaited feature..
  • The :is selector which makes certain selectors way less obnoxious to write (e.g. article :is(h1, h2, h3):not(:first-child)). This makes me wonder why we never had such a thing in Sass that helped with that.
  • Functions like min(), max(), and clamp(), and I think the best practices and clever uses for them are just shaking out. Fluid type is the most obvious and useful example, but only scratches the surface.
  • Units like ch and ex. I really like max-width: 70ch;. There’s a general bit of typography advice that line length should be between 45 and 75 characters long (I made a bookmarklet to test it once), so rather than forcing that with some abstractly related width, you use the actual width of characters as the width.
  • Fancy text-decoration (e.g. text-decoration-thickness: 0.5rem;) meaning we can thicken up an underline without giving up the usefulness that is text-decoration-skip-ink like we would if we had to resort to a border.)

Direct Link to ArticlePermalink


The post Things You Can Do With CSS Today appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

Categories: Designing, Others Tags:

CSS Switch-Case Conditions

February 17th, 2021 No comments

CSS is yet to have a switch rule or conditional if, aside from the specific nature of @media queries and some deep trickery with CSS custom properties. Let’s have a look at why it would be useful if we did, and look at a trick that is usable today for pulling it off.

Recent chatter about the possibility

While none of these things are usable today, there has been a good amount of chat about the concept of generic conditional CSS just in the last year:

So, yes. The demand for conditional CSS is there.

Imagine why conditional CSS would be useful

Perhaps a visual change after a certain amount of scrolling. A visual change after a numeric input is within a certain range. A component with a handful of states.

There is a whole genre of extremely popular JavaScript libraries for UI (e.g. React, Vue, etc.) that are essentially for building UI based on state. Clearly this is a developer need. If we could move that state-based styling to CSS, that’s all the less JavaScript we might need — and maybe a better separation of concerns.

A common theme

We already have custom properties in CSS, and we could base state-change logic on them, changing a block of styles as a side effect of the custom property changing to certain values.

It’s true that we have mechanisms for changing blocks of styles already. We can change class through JavaScript, and that class can apply whatever we like in CSS. But that doesn’t mean state-based styling in CSS wouldn’t be useful. We don’t always have the ability or may not want to write any JavaScript for this, and instead change custom properties in other ways (e.g. media queries, HTML changes, etc). Doing it in CSS means helping separate business logic and visual style logic.

A trick! Using @keyframes for state

CSS @keyframes can be used to switch specific changes. Through the power of the animation property, a possibility opens up to select exactly which frame to show, and have it pause exactly on that frame, effectively mimicking a switch-case statement or state-based styles.

Let’s see see this in action by playing with the animation-delay property:

CodePen Embed Fallback

Here’s what’s happening in that Pen:

  • animation-delay: Negative delay values force a specific frame (or between) to take effect (positive values don’t work that way). We’ll use this trick to force states.
  • animation-play-state: paused: We’re not actually animating anything, so the animation will stay paused.
  • animation-duration: The actual duration doesn’t matter, it just needs one so there is a time span to hold the different keyframes. We’ll make it a value like 100.001s so that if we delay by 100s, the last keyframe will still work. The duration needs to be longer than the delay value.

The first range input modifies the animation-delay between a range of -100s and 0s.

A real-world use-case

Before we jump straight into the working example, it’s worth discussing this trick in more detail because there’s some nuances you ought to be aware of.

First off, the trick only works with numeric values. So, color values or strings because it’s strictly performing math.

Second, there’s the boolean trick. Consider a variable --value: 10 which can take any numeric value between 0 and 100. We want to apply color if the value is above 5. How do we know if the value is over or below 5? And even if we do know, how does that help actually help us?

--is-above-5: clamp(0, var(--value) - 5, 1)
--value --is-above-5 Result
0 0 0 – 5 = -5, clamp() forces a value no less than 0
2 0 2 – 5 = -3, clamp() forces a value no less than 0
5 0 5 – 5 = 0
7 1 7 – 5 = 2, clamp() forces a value no larger than 1

clamp() is like a smarter calc(), in that it allows us to strictly confine a computed value to range while declaring an ideal value. That range is all that is needed to achieve a boolean variable.

Write any math in the second parameter of the clamp() and that will either output 0 (or below) or 1 (or above). Make sure not to write any math that might result in a number between 0 and 1.

Here’s how that works out:

CodePen Embed Fallback

The range input’s only job is to “broadcast” its value by defining a values for --value, --min and --max, then modifying the --value using an oninput event. That is the most minimal thing that can be done get state-like behavior in CSS. No JavaScript needed.

Using CSS math functions, it is possible to infer the “completed” percentage of the progress bar from those same variables:

--completed: calc((var(--value) - var(--min) ) / (var(--max) - var(--min)) * 100);

Now, we know if the value is over a certain percentage, giving us yet another way to make changes by state:

--over-30: clamp(0, var(--completed) - 30, 1);
--over-70: clamp(0, var(--completed) - 70, 1);
/* ...and so on... */

OK, great, but how can we use this to select a specific keyframe? By using max() function:

--frame: max( 
    calc(1 - var(--over-30)), 
    var(--over-30) * 2, 
    var(--over-70) * 3, 
    var(--is-100)  * 4 
);

The thing with CSS booleans is that there are many ways to use them to achieve a certain goal, and one must get creative, finding a formula which is short and readable.

In the above formula, the booleans will “toggle” a frame number if the boolean has the value of 1. Since we are using a max function, the the largest toggled frame number will be the computed value of --frame.

Note that the color change has a slight transition. We could have done this with the background: currentColor; on the fill area, which inherits the color from the parent, but I chose to use CSS Houdini to illustrate the power of assigning transitions to CSS variables by declaring its type.

An example of a heavily-used CSS boolean trick can be viewed in the below Pen, which is a CSS-only component with lots of variables that allow a wide range of customization:

CodePen Embed Fallback

I am sure there are many other use cases for this little trick and am excited to see what else might be achieved by the creativity of the community.


The post CSS Switch-Case Conditions appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

Categories: Designing, Others Tags:

Use CSS Clamp to create a more flexible wrapper utility

February 17th, 2021 No comments

I like Andy’s idea here:

.wrapper {
  width: clamp(16rem, 90vw, 70rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

Normally I’d just set a max-width there, but as Andy says:

This becomes a slight issue in mid-sized viewports, such as tablets in portrait mode, in long-form content, such as this article because contextually, the line-lengths feel very long.

So, on super large screens, you’ll get capped at 70rem (or whatever you think a good maximum is), and on small screens you’ll get full width, which is fine. But it’s those in-betweens that aren’t so great. I made a little demo to get a feel for it. This video makes it clear I think:

Direct Link to ArticlePermalink


The post Use CSS Clamp to create a more flexible wrapper utility appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

Categories: Designing, Others Tags:

10 Best Free Stock Image Sites For 2021

February 17th, 2021 No comments

When photographers take images to sell commercially, like every other business, they want to maximize their returns, so they adapt their ideas to meet commercial trends. As a result, stock always looks like stock, and that minor deception introduces a small amount of doubt in users.

But the rise of camera phones, and the increasing affordability of DSLRs, has led to a growth in people who aren’t monetizing every shot. What that means is if you know where to look, you can find images that are less posed, more natural, less clichéd, and far more diverse.

Here are ten places to look for engaging, and trust-building stock images, all free to use…

1. Pexels

Pexels has a huge collection of high-quality images that would not feel out of place on a ‘premium’ site. You’ll also find a ton of free videos. Pexels’ search feature is particularly well-tuned. Pexels also runs regular challenges, with cash prizes for photographers; reviewing the past competitions is a great shortcut to finding original images.

2. Reshot

Reshot is one of the better stock sites on the web, with a wide selection of curated images. There’s a distinctly Instagram feel to the images on Reshot; they don’t feel staged, in many cases, they don’t look like stock at all. That gives them an authentic feel that many ‘premium’ stock sites fail to deliver.

3. Unsplash

Unsplash is one of the largest collections of free images on the web. It has a good collection of standard stock and a growing collection of more creative, experimental images. Its free-forever approach is backed by product placement instead of adverts or premium sections, which means you may find the more marketable images include easily identifiable brands.

4. Life of Pix

Life of Pix highlights one photographer per week to feature ten images; that adds a competitive angle to the site as photographers submit premium shots to get noticed. Unless you’re very fortunate, the ideal shot for you isn’t going to be found in the current set, but click the ‘Gallery’ link, and you’ll have access to all the shots that have previously been uploaded.

5. Nappy

Unlike ‘premium’ sites that are set up to turn a profit, free stock sites often set out to address a hole in the market. Nappy was set up to redress the underrepresentation of black and brown people on many stock sites. At least some of your users fall into this demographic, and it’s a great idea to show them they’re valued by using images like these.

6. Burst

Burst is a stock site provided by Shopify to help new entrepreneurs find stock to help them sell products. Anyone can use the shots, but there is a natural inclination towards commercial rather than editorial images. There’s a good mix that rivals many paid sites and some less obvious shots.

7. Picography

If quirky and offbeat isn’t right for your project — and it may very well not be — then check out Picography for a more middle-of-the-road collection of free stock images. There’s a wide selection, but they do tend to feel more stock-like than many other collections.

8. ISO Republic

ISO Republic has a broad range of images and videos to choose from. Again, the images tend to be more stock-like than some other options, and you do have to dig around to find the best. ISO Republic is a good place to search when you want to swap like-for-like with a ‘premium’ stock source.

9. Kaboompics

Kaboompics specializes in lifestyle images. If you’re hoping for a woman sipping a frappuccino while making commanding business decisions, you’re in the right place. Kaboompics is a one-woman show, so the perspective is a little narrower than the ideal, but the free images are consistently high-quality.

10. StockSnap

StockSnap has a good balance of images. Many professional photographers use sites like StockSnap to upload the images they choose not post to ‘premium’ sites for one reason or another, so you’ll often find premium-quality shots for absolutely nothing.

Source

The post 10 Best Free Stock Image Sites For 2021 first appeared on Webdesigner Depot.

Categories: Designing, Others Tags: