Building a slider using a Layouter
Learn how we built a slider section to showcase 3D type in our mid-year 2022 digital design trends report. Technical Designer Ido Hershkovits explains how to recreate the design using a Layouter set to the slides display type.
What do you think about the course so far?
Thank you for your feedback!
Explore more topics
How we built the 3D lettering slider on our digital trends page.
Part 1: Section structure.
Let’s start with how the section is structured. The section is divided into a grid with one column and 3 rows. Each row also has a container that is stretched to fill it. In the middle row, where we’re going to create our slider, we’ve applied a 3X3 grid to lay out our elements. Also note, the section has padding of 35 pixels to the left and right.
Part 2: Set up the Layouter.
Open the Add panel
Drag a Layouter into the container in the middle row of the section
From the floating action bar, change the Layouter type to Slides
Delete one item from the Layouter (there should be a total of 3)
Remove the background color from each item
From the Inspector panel, under Location in grid cells, make sure the Layouter spans all grid cells in the container
Stretch it to fill the container
Part 3: Add media.
With the first Layouter item selected, add the first image
Align the image to the center and middle
Set its width to 50%
Dock it to the top of the Layouter item
Set the top margin to 4%
Scroll to the second layouter item and add the second image
Align it to the center and middle
Set the width to 90%
Dock it to the top with a 12.5% top margin
Add the third image to the third Layouter item
Center the image
Set the image width to 80%
Dock to the center with zero margins
Result: When we preview and scroll side-to-side, the images slide. The design is also responsive. Now we need a few finishing touches.
Part 4: Finalize the design.
First, we want to hide the scroll bar.
Select the Layouter
From the Inspector panel, switch off the Show scrollbar toggle
Next, you might have noticed that when the items slide in and out to the left and right, they cut out at the edge of the container instead of at the edge of the screen. This is because the Layouter is stretched to fill the container, but the section has 35px padding on each side. Let’s see how to change this:
Select the Layouter
Set the left and right margins to -35px
Finally, let’s add some navigation arrows to scroll between items.
With the Layouter selected, open the Inspector panel
Under Navigation, click Add and choose Arrows
Select the Prev button and choose Change Basic Shape from the floating action bar
Choose the arrow we’re using in this design
Under Adjust, choose Flip horizontally
Resize the arrow to 75px width and 65px height
Do the same for the Next button
Change the position of both arrows so they’re pinned to the container instead of to the Layouter. Now we can position them within the grid
Position the arrows to the right side of the top middle grid cell
Dock each of them to the right
Set their sizing to Fluid
Final result: We have a fully responsive slideshow created using a slides Layouter.