Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Addons
  3. Carousel feature request: per-slide classes

Carousel feature request: per-slide classes

Scheduled Pinned Locked Moved Addons
3 Posts 2 Posters 132 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    adam
    wrote last edited by
    #1

    I'm building a full-screen carousel where the Site Title and menu switch between white and black text depending on the slide behind them, plus a floating preview of the next/previous slide that follows the cursor. Both work using Custom CSS & HTML and classes on the Carousel element.

    The gap: there's no way to attach anything to an individual slide. To let editors set the header colour per slide, I have to match settings to slides by order, which breaks when slides are reordered.

    Could you add one of these to the per-slide settings in the Carousel dialog?

    1. A "Classes" field per slide, output on the .lay-carousel-slide element.
    2. Or a "Header text colour" option per slide (Default / Light / Dark), output as a class or data attribute on the slide.

    Also useful for anyone extending the carousel with custom code:

    • A documented JS event when the active slide changes (e.g. via window.laytheme.on), rather than watching for the is-selected class.
    • A public API to go to the next/previous slide programmatically.

    Lay Theme 11.7.9, Carousel 3.2.5.

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote last edited by
      #2

      hey adam!

      grafik.png

      all great ideas!!
      look, classes will be part of the carousel modal

      https://laytheme.com/documentation/carousel-addon.html

      and

      there will be a JS API:

      grafik.png

      with the next carousel addon update that i will release

      1 Reply Last reply
      0
      • arminunruhA
        arminunruhA
        arminunruh
        Global Moderator
        wrote last edited by
        #3

        if you check out ai mode:

        https://laytheme.com/tutorials/ai-mode.html#connect-to-claude-codex

        you can also let the ai mode create a custom carousel element.

        there are different ways of doing it. if you already have a working carousel prototype, you can just tell your claude/codex:

        make this a custom element for the gridder

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        Online Users
        I
        itsbadjujuju
        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
        laytheme.com
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Search