Sometimes you want to use different images for the same section/element in different breakpoints. For example, a landscape image for the desktop breakpoint, and a portrait image for the mobile breakpoint.
There are two solutions to this problem.
The first solution is to adjust the image wrapper size and set the image to cover the wrapper.
The second solution is to use an html `<picture>` element where you can specify images for any breakpoints you want.
Until now, Webflow didn’t support the `<picture>` element. Now we can use the custom DOM element and use it as a <picture>.
Blog post: https://www.maray.ai/posts/html-picture-element-in-webflow
Tags from Webflow:
The best Webflow projects handpicked & delivered.
We search the entire Webflow showcase to find the most clone-worthy websites. The kind of sites that make you say "wait... this is free?"
Unsubscribe anytime. No spam.
Booyah! The first newsletter will go out early next week.
Oops! Something went wrong while submitting the form.
0 Comments