Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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 customization

carousel customization

Scheduled Pinned Locked Moved Addons
6 Posts 2 Posters 121 Views
  • 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.
  • StarcS Offline
    StarcS Offline
    Starc
    wrote on last edited by
    #1

    Hi @arminunruh,
    I have some questions regarding the carousel code customization:

    1. Is it possible to make the carousel overflow visible only on the left while keeping it hidden on the right? (Currently, I managed to make it visible, but it affects the entire X-axis.)
    2. Can we disable vertical mouse scrolling within the carousel slides?
    3. I tried applying the box-shadow effect and setting a transparent background on the container that I believe holds the slides, but without success. Is there a way to achieve the shadow effect without overlapping the adjacent carousel slides?
    4. I would like to add a shadow on the right side so that the carousel appears to fade out at the edge. I know how to create the shadow effect, but I’m not sure which selector I should apply it to.

    Carousel type "slide"

    Thank you,
    M.

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

      2. you mean you use transition slide, and activated "mouse scroll"?

      3. do u have a link?

      Screenshot 2025-02-13 at 15.39.34.png
      .lay-carousel{
      box-shadow: 10px 5px 5px red;
      }

      1. mh maybe inset shadow?
        not sure if its possible ! https://stackoverflow.com/questions/5115427/how-can-i-add-a-box-shadow-on-one-side-of-an-element

      sorry for the late reply

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

        i think number 4 wont really work

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

          ok to make point 4 work:
          to get this bar on the right side that is a gradient from white to transparent:
          Screenshot 2025-02-13 at 18.54.26.png

          put this in lay options → custom css & html → custom <head> content:

          <script>
          window.laytheme.on('newpageshown', function(){
              jQuery(".lay-carousel").each(function(){
                  if(jQuery(this).find('.fadebar').length == 0){
                      jQuery(this).append('<div class="fadebar"></div>');
                  }
              })
          })
          </script>
          <style>
              .fadebar{
                  position: absolute;
                  z-index: 1;
                  right: 0;
                  width: 50px;
                  height: 100%;
                  pointer-events: none;
                  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
              }
          </style>
          

          this adds a container: <div class="fadebar"></div> to all carousels and the css below makes it a gradient that you can click through

          1 Reply Last reply
          0
          • arminunruhA Online
            arminunruhA Online
            arminunruh
            Global Moderator
            wrote on last edited by
            #5
            1. if you just want horizontal mouse scrolling, you can use the new transition scroll feature:

            Screenshot 2025-02-13 at 18.57.00.png

            1 Reply Last reply
            0
            • StarcS Offline
              StarcS Offline
              Starc
              wrote on last edited by
              #6

              Thanks you for your help. I’ll study it in the next few days. Right now, I’m busy dealing with various issues from my first exports from local to remote. :)

              1 Reply Last reply
              1
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              I also code custom websites or custom Lay features.
              💿 Email me here: 💿
              info@laytheme.com

              Before you post:
              1. When using a WordPress Cache plugin, disable it or clear your cache.
              2. Update Lay Theme and all Lay Theme Addons
              3. Disable all Plugins
              4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

              This often solves issues you might run into

              When you post:
              1. Post a link to where the problem is
              2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
              3. If the problem is difficult to explain, post screenshots / link to a video to explain it
              Online Users
              arminunruhA
              arminunruh
              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