To reverse the order of an image and text in Webflow for mobile view while keeping the original order in the desktop view, you can use Webflow's responsive design features and flexbox.
Here is a step-by-step guide to achieve this:
1. Start by structuring your HTML elements. Place the image and text inside a parent container element, such as a `div` or a `section`.
2. Set up a container class for the parent element. You can give it any name, like "image-text-container", and make sure it has `display: flex;` property applied to it.
3. Set the order of the image and text elements. By default, the image will have an order of `0` and the text will have an order of `1`. This means the image will appear first and the text will appear second.
4. Now, it's time to apply the responsive design. Select the parent container element and click on the "+" button next to the default class name to add a new class specifically for mobile view.
5. Customize the mobile class by clicking on the "Settings" icon and selecting the mobile breakpoint. This will allow you to make changes that only affect the mobile view.
6. In the mobile class, change the order of the image and text elements. You can do this by giving the image an order of `1` and the text an order of `0`. This will reverse their order on mobile devices.
7. Finally, use Webflow's "Hide" feature to hide the mobile class on desktop view and the default class on mobile view. This ensures that the changes are applied only to the respective breakpoints.
To hide the mobile class on desktop view:
- Select the parent container element and go to the "Settings" icon.
- Under the mobile breakpoint, click on the eye icon next to the mobile class and choose "Hide".
To hide the default class on mobile view:
- Select the parent container element and go to the "Settings" icon.
- Under the desktop breakpoint, click on the eye icon next to the default class and choose "Hide".
That's it! Your image and text will now appear in reverse order on mobile devices while maintaining their original order on desktop devices. Remember to preview and test your design on different devices to ensure it works as expected.