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. General Discussion
  3. multiple carousel + each caption on hover

multiple carousel + each caption on hover

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 370 Views 1 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.
  • J
    J
    jotundes
    wrote on last edited by jotundes
    #1

    hey,
    i was wondering if it is possible to have multiple carousels on one page while displaying their caption on hover?
    (because of using the .lay-carousel-sink-parent class with jquery it fades in all at the same time)

    eventually there is a selector to target the captions of each carousel?

    thanks in advance,
    johannes

    edit: it is possible to achieve by adding a custom class to the carousel and then use this custom class to target the captions for each carousel

    J 1 Reply Last reply
    0
    • J jotundes

      hey,
      i was wondering if it is possible to have multiple carousels on one page while displaying their caption on hover?
      (because of using the .lay-carousel-sink-parent class with jquery it fades in all at the same time)

      eventually there is a selector to target the captions of each carousel?

      thanks in advance,
      johannes

      edit: it is possible to achieve by adding a custom class to the carousel and then use this custom class to target the captions for each carousel

      J
      J
      jotundes
      wrote on last edited by
      #2

      anyone with similar problem:
      the solution is to give each carousel an id and then you can target the caption with the help of the id in jquery for example:

      jQuery(document).on("mouseenter", "#carousel-id", function(event) {
      	jQuery("#carousel-id .lay-carousel-sink-parent").animate({ opacity: 1 }, 1000);
      });
      jQuery(document).on("mouseleave", "#carousel-id", function(event) {
      jQuery("#carousel-id .lay-carousel-sink-parent").animate({ opacity: 0 }, 1000);
      });
      
      1 Reply Last reply
      1
      • arminunruhA
        arminunruhA
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        ah very nice!

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

          maybe this is better, without js:

          #carousel-id .lay-carousel-sink-parent{
          opacity: 0;
          transition: opacity 1000ms ease;
          }
          
          #carousel-id:hover .lay-carousel-sink-parent{
          opacity: 1;
          }
          
          J 1 Reply Last reply
          1
          • arminunruhA arminunruh

            maybe this is better, without js:

            #carousel-id .lay-carousel-sink-parent{
            opacity: 0;
            transition: opacity 1000ms ease;
            }
            
            #carousel-id:hover .lay-carousel-sink-parent{
            opacity: 1;
            }
            
            J
            J
            jotundes
            wrote on last edited by
            #5

            @arminunruh thank you! guess css even better and faster

            1 Reply Last reply
            1

            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
            L
            lukas123
            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