Select Page

Category: Web Development

Create the Perfect Carousel, Part 3

This is the third and final part of our Create the Perfect Carousel tutorial series. In part 1, we evaluated the carousels on Netflix and Amazon, two of the most heavily used carousels in the world. We set up our carousel and implemented touch scroll. Then in part 2, we added horizontal mouse scroll, pagination, and a progress indicator. Boom. Now, in our final part, we’re going to look into the murky and oft-forgotten world of keyboard accessibility. We’ll adjust our code to remeasure the carousel when the viewport size changes. And finally, we’ll a few finishing touches using spring physics....

Read More

Beginner’s Guide to Android Layout

While Activity handles user interaction with your app, Layout determines how the app should look. In this post, you’ll learn how a layout defines the visual structure for a user interface, such as the UI for an activity or app widget. The Layout The Layout file is an XML file that describes the GUI of a screen of your app. For this example, we’ll be creating a linear layout, which is used to display GUI components side by side. These components can be displayed vertically or horizontally. When displayed horizontally, they are displayed in a single row. When displayed...

Read More

Create the Perfect Carousel, Part 2

Welcome back to the Create the Perfect Carousel tutorial series. We’re making an accessible and delightful carousel using JavaScript and Popmotion‘s physics, tween and input tracking capabilities. In part 1 of our tutorial, we took a look at how Amazon and Netflix have created their carousels and evaluated the pros and cons of their approaches. With our learnings, we decided on a strategy for our carousel and implemented touch scrolling using physics. In part 2, we’re going to implement horizontal mouse scroll. We’re also going to look at some common pagination techniques and implement one. Finally, we’re going to...

Read More

Make Your Go Programs Lightning Fast With Profiling

Go is often used for writing distributed systems, advanced data stores, and microservices. Performance is key in these domains.  In this tutorial, you’ll learn how to profile your programs to make them lightning fast (utilize the CPU better) or feather light (use less memory). I will cover CPU and memory profiling, using the pprof (the Go profiler), visualizing the profiles, and even flame graphs. Profiling is measuring the performance of your program in various dimensions. Go comes with great support for profiling and can profile the following dimensions out of the box: a sampling of CPU time per function...

Read More

Create the Perfect Carousel, Part 1

Carousels are a staple of streaming and e-commerce sites. Both Amazon and Netflix use them as prominent navigation tools. In this tutorial, we’ll evaluate the interaction design of both, and use our findings to implement the perfect carousel. In this tutorial series, we’ll also be learning some functions of Popmotion, a JavaScript motion engine. It offers animation tools like tweens (useful for pagination), pointer tracking (for scrolling), and spring physics (for our delightful finishing touches.) Part 1 will evaluate how Amazon and Netflix have implemented scrolling. We’ll then implement a carousel that can be scrolled via touch. By the end...

Read More
000webhost logo