In this tutorial, you will learn how to create an Elementor design where we have images that become sticky, one image zooms in to fill the screen, and then the scroll keeps going normally.
It's not easy to explain, so here is the demo (scroll down all the way):
On mobile, the images stack:
A premium user sent me this website and asked if I had a tutorial for this. I didn't, so I created this.
Features:
- Story telling design: Ideal for product features, service presentations, or even educational websites
- Performant: No dependencies code, makes this as lightweight as could possibly be
- Customize: Adjust the size of the images and the spacing between them as you need
- Responsive: Have different images on desktop and mobile, for optimal layout
- Works with 2, 3 or 4 images: It could work with more images too, however I think it would get annoying to the user beyond 3-4 sections like this
Let's get started!
First, import the template on your page
This is a premium tutorial. Purchase access to unlock the full tutorial.
20 Responses
Hi, not sure if I'm doing something wrong but I have 3 issues:
1. There's a lot of whitespace under the last text, and I'm not able to change that (it seems)
2. In the text, there are automatically 3 columns, but there's only text in the 2 columns on the left. I am unable to delete the 3rd column, and if I try to add text to that 3rd column, it makes a 4th one. The text is now 'cramped' on the left side, while I'd like to use the whole width.
3. On the mobile version, I have to manually add a one column block for the text, because on mobile it also stays in 3 columns but that's very hard to read...
Thanks!
Greetings!
The texts sections are provided just as a demo. The tutorial is more about the images.
I suggest you completely delete the sections with the texts in them, and create them from scratch, according to your own needs and preferred methodology.
Let me know if that works!
Cheers!
Hi, i am facing 3 issues.
1. I added the 4th image and it is being cropped due to it is exceeding the container. Is it possible to fit all 4 images into the container?
2. In tablet mode the images are in 4 columns instead of 4 rows as shown in your demo.
3. In mobile the images are not center aligned.
thanks!!
Hey Delan!
Could you please share your URL with me? I will have a look.
Cheers!
Hi,
Is it possible to add link to the images? It seems fine to add link to the images in desktop version, but the zooming effect has issue if I add link to the images in mobile version.
Thanks!!
Sorry Delan, if you encounter a problem while adding a link, then please avoid adding a link. The tutorial and code doesn't support them.
Thanks!
Hey Maxime,
What size images should I use to show off a desktop size website design where showing the entire image is important. Here is my example. https://wordpress-1385669-5407997.cloudwaysapps.com/...please scroll down to the section where I implemented it but as you can see as you wheel the mouse, the full image never comes into focus on a computer screen. Can you help me with the correct image size to maximize the visibility of the portfolio images?
Greetings,
I'd recommend another design if the image can't be cropped... with the design in this tutorial, the image becomes full screen so by definition will be cropped, differently for different screen sizes. We could attempt to fix this with CSS with
object-fit: contain;
applied on the images, but then the design would look different... you can try it anyhow to see if it fits your needs.
Add this CSS under advanced > custom CSS for all the images:
selector img {
object-fit: contain;
}
Cheers!
Wow that actually works perfect I just have to make sure all three images are the same aspect ratio so that they are the same height before the scroll activates and enlarges the images as you scroll. Thanks a lot!
Welcome!
Glad it works for you.
The placeholder images are displayed vertically one below the other, both in the backend and frontend. When I change the direction to "Row horizontal" it fits, but then the large view no longer works properly. This is probably also the wrong approach, because the tutorial states that you should not change the styles within the Elementor user interface. Is this problem known and how can I fix it? Thank you in advance.
Greetings Colonel,
The images should be vertical only for tablet and mobile viewports. You have them vertical for all viewports, directly after importing the template?
Hi Maxime, thanks for your quick reply. Yes, also in widescreen and laptop mode. I can send you the link if you like.
Yes please!
I have sent you a corresponding e-mail
desktop works great but mobile isnt working how can i fix it?
Hey Niro!
Please send me the URL where you have this, I will have a look!
https://wordpress-1384637-5215083.cloudwaysapps.com/?page_id=5550
Hey Niro,
It's not working on mobile because there is this custom CSS applied, which breaks it:
@media screen and (max-width: 879px) {
body {
overflow:hidden;
}
}
Delete this custom CSS, and then it works on mobile.
Learn more about this in the debugging position sticky article https://element.how/css-debugging-position-sticky-not-working/
If you don't want to delete it, add the following CSS on that page only:
@media screen and (max-width: 879px) {
body.rtl {
overflow:visible;
}
}
I hope this helps
Cheers!
thank you!!!!