Are you looking for a space-themed font to add a futuristic and sci-fi vibe to your designs? Then this collection of space fonts is the best place to start! Space fonts line up with a popular trend that’s taking over the design world, especially in website headers, social media, posters, and print design. In this…
Google’s influence over web designers, website owners, and everyday users is undeniable. The company is hyper-aggressive in detailing what it wants to see from the first two groups in order to serve up relevant results to the third. One of their more recent efforts in this area revolves around something called “Core Web Vitals”. These…
Among the many benefits of CSS Grid is its ability to create complex layouts with ease. You don’t need an excessive amount of code. No precarious hacks are required. A few relatively simple lines can help you quickly achieve something that used to take hours. Of course, CSS Grid is also incredibly powerful. We’ve seen…
The 20 Best Photoshop Actions & Layer Styles for Creative Text Effects – Give your regular graphics an extra oomph with incredible typography! This collection includes a massive variety of styles to choose from. Emoji Cloud – Tell the world how you feel by using this CDN for SVG emoji. Glassmorphism UI – Hop on…
I still remember my excitement when I learned how to build a hover-triggered submenu with just CSS. (It was probably after reading this 2003 article from A List Apart.) At the time, it was a true CSS trick. Seriously. Wild times. That went a little something like this: <ul class=”my-menu”> <li> <a href=”page-a.html”>Page A</a> <ul>…
Adobe XD is one of the most popular tools used for designing user interfaces for mobile and desktop apps. What most designers are unaware of is that Adobe XD is also a great tool for wireframing as well. We handpicked a collection of Adobe XD wireframe kits and templates to show you how easy it…
Starting a web design business isn’t difficult. There’s a low barrier to entry, and almost anyone with some kind of design skill can start an agency. But if we’ve learned one thing, it’s that building a successful design business takes more than just web design chops. Whether you’re a freelancer or a full-scale web design…
The process is complicated further by touch-screens, hybrid devices, and high-density displays. If you’re coding on a regular PC with a mouse and keyboard, it’s difficult to appreciate how your masterpiece will operate. Features such as mouse hover won’t necessarily work and your application could be inoperable. But how can you test your system during development and avoid the pain of managing and switching between multiple devices?
Fortunately, all modern browsers offer mobile emulation tools, and one of the best can be found in Chrome. It can help identify early problems without leaving the comfort of your PC and development environment.
Start Chrome, navigate to the web page you want to test and open the Developer Tools (Menu > Tools > Developer Tools, Cmd + Opt + I on macOS or F12 / Ctrl + Shift + I on Windows and Linux).
You can now enable the browser emulator by clicking the Toggle device toolbar icon in the top left:
A device simulation will now appear:
The dimensions of the emulated screen can be changed when Responsive is selected as the device type.
Touch Enabled Emulation
Hold down Shift then click and move your mouse to emulate pinch zooming.
It’s worth spending a little time familiarizing yourself with the toolbar and menu above the mobile emulator:
The default controls are:
the device type (or Responsive)
the current resolution
the scale (the screen can be zoomed in or out to fit better in the emulator pane)
the network speed
a portrait/landscape toggle button
The three-dot menu allows you to show or hide additional controls:
the device frame (if available, a graphic of the phone or tablet)
CSS media query bars (see below)
a pixel ruler
add device pixel ratios
add device types
capture a screenshot (including the device frame if shown)
capture a full-page screen shot
Select Show media queries from the three-dot menu to view a graphical color-coded representation of all media queries set in the CSS.
BLUE: queries which target a maximum width
GREEN: queries which target widths within a range
ORANGE: queries which target a minimum width
Any bar can be clicked to set the emulator screen to that width.
Emulated Device Options
The drop-down menu on the left allows you to select a device. Several dozen presets are provided for popular smart phones and tablets, including iPhones, iPads, Kindles, Nexus tablets, Samsung Galaxy, and so on.
Not all devices are presented at once. Click Edit… at the bottom of the device drop-down or click the DevTools Settings cog icon and choose the Devices tab:
You can enable or disable devices or enter your own by defining:
a classification such as “Mobile” or “Tablet”
a browser user agent string
the device resolution
and pixel ratio (such as 2 for iPhone Retina screens where the pixel density is twice as high as the reported viewport resolution)
All browsers identify themselves with a user agent string sent on every HTTP header. This can be examined on the client or server-side and, during the dark days of web development, would be used to modify or provide a different user experience. In extreme cases, the viewer would be directed to a different site. The technique was always flawed but has become largely redundant owing to Responsive Web Design techniques, and it was unsustainable given the number of devices available on the market.
Bandwidth Throttling Simulation
The throttling drop-down allows you to emulate slow network speeds typically experienced on mobile connections or dodgy hotel and airport Wi-Fi! You can use this to ensure your site or application loads quickly and remains responsive in all environments.
The throttling drop-down is available in the Network tab and Chrome’s device toolbar. You can set your own bandwidth configuration by clicking the DevTools Settings cog icon and choosing the Throttling tab:
Click Add custom profile then enter:
the profile name
the download speed in kilobits per second
the upload speed in kilobits per second
the latency in milliseconds (the typical delay when making a network request)
Emulated Mobile Sensors
Smart phones and tablets often have sensors such as GPS, gyroscopes, and accelerometers, which aren’t normally present in desktop devices. These can be emulated in Chrome by choosing More tools, then Sensors from the Developer Tools main three-dot menu:
A new pane appears which allows you to define:
The current latitude and longitude or select a major city from the drop-down. You can also select Location unavailable to emulate how your application reacts when the device cannot obtain a reliable GPS signal.
The orientation. Several presets are available or you can move the device image by clicking and dragging.
The touch response.
An idle state to examine how an app reacts to a lock screen.
Remote Real Device Debugging
Finally, Chrome allows you to connect a real Android device via USB for remote device debugging. Enter in the address bar, ensure Discover USB devices is checked, then attach your phone or tablet and follow the instructions.
Chrome allows you to set up port forwarding so you can navigate to a web address on your local server on the device. Chrome’s preview pane shows a synchronized view of the device screen and you can interact either using the device or Chrome itself.
The full range of developer tools can be used including the Application tab to test Progressive Web Apps in offline mode. Note that, unlike a real application which requires HTTPS, Chrome permits PWAs to run from localhost over an HTTP connection.
Great! I Don’t Need Any Devices Now!
Chrome’s mobile browser emulator is useful and powerful, but it’s no substitute for interacting with your website or app on a real device to evaluate the full user experience.
You should also be aware that no device emulator is perfect. For example, Chrome shows a representation of the page on an iPhone or iPad but will not attempt to simulate the standards support or Safari quirks.
That said, for quick and dirty mobile testing, Chrome’s device emulation is excellent. It’s far easier than switching between real smart phones, and you’ll have all the developer tools at your disposal. It saves hours of effort.
The difference between building a great website and a mediocre one is usually determined very early on. It’s often a matter of a web designer painting their project into a virtual “corner”. That’s where a design becomes inflexible and unable to accommodate various use cases. This tends to happen in the prototyping phase. We spend…
What’s the most important part of a business presentation? The way you dress? Your speech? Or is it your body language? It’s actually none of the above! Your presentation slides are the most important part of a business presentation. Why? Because your clients will be staring at the slides at all times and you’ll be…