On this page: Learn how to build a carousel that can be edited in the Visual Experience Composer (VEC).

A carousel built with the following structure can be edited in the Adobe Target Visual Experience Composer (VEC). The structure keeps the selector of each slide valid, so Target always identifies the correct slide, even when the displayed slide changes a few seconds after the page loads in the VEC.

  1. Create the slides as static HTML placeholders, with one visible slide and the other slides hidden by class.

    <ul>
    <li class="show"> slide 1 </li>
    <li class="hidden"> slide 2 </li>
    <li class="hidden"> slide 3 </li>
    </ul>
    
  2. Design the look and feel with CSS only. Do not use JavaScript for this.

    NOTE
    The Render Using JavaScript option is currently not supported when it is used together with custom code in the Visual Experience Composer.
  3. Show the next slide by updating only the class names: hide the other slides and show the next one with a timer or an animation. Never update the DOM structure with JavaScript.

Announcements

Get hands-on with agentic AI.

Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.

Find an event

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.

Ask AI