What is the Loop feature?
The loop feature in Divhunt allows you to duplicate elements multiple times without having to copy and paste them manually. This feature is especially useful when you need to repeat the same element several times on your page.
How to use the Loop
- Right-click on the element: Right-click on the element you want to loop, or on that layer in the layers panel.
- Enter loop count: Type the number of times you want to duplicate/loop that element.
Benefits of using the Loop
- Efficient duplication: Instead of copying and pasting the feature card 10 times, the loop field does this for you quickly and efficiently.
- Layer visibility: You won’t see 10 separate feature cards in the layers panel. Instead, you will see a small label indicating that the feature card is duplicated 10 times.
- Global changes: If you change something on the first element, it will automatically update all the duplicated elements.
Note: If you change the parent (the original element), those changes will apply to every duplicated element unless you have made individual changes to some of the duplicated elements separately.
Important: If you want to edit child looped elements to be different from the original in terms of CSS / visual design properties, you need to use classes or CSS selectors like nth-child. Editing them directly on the canvas will apply changes to every other element in the loop. You can only edit content, such as text and images, separately on each of them.
Editing looped elements
You can edit the content of any of the duplicated elements, such as text and images, directly on the canvas. Select the one you want to change, and make your edits. These changes will apply only to the selected element, allowing you to customize each one individually if needed. For visual changes, remember to use classes or CSS selectors.
The loop field in Divhunt simplifies the process of duplicating elements on your webpage. By using the loop option, you save time and keep your layers panel organized. Editing individual duplicated elements is straightforward, giving you both efficiency and flexibility in your design process.
