Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Carousel: Change body css on swipe

    Addons
    2
    3
    364
    Loading More Posts
    • 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.
    • P
      phil last edited by

      Hey there,

      is it possible to change a general body css class while swiping on a mobile carousel image pool?
      That would help me a lot.

      All the best
      Phil

      1 Reply Last reply Reply Quote 0
      • mariusjopen
        mariusjopen Global Moderator last edited by

        Hi Phil,

        sure. That is possible with a little jQuery or Javascript.

        But there is no default option included. So you need to somehow fire the new class when the carousel gets turned.

        You are familiar with jQuery?

        Best!

        Marius

        www.mariusjopen.world

        1 Reply Last reply Reply Quote 0
        • P
          phil last edited by

          Thanks, Marius, I got it working with jQuery.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          Try this to fix issues before you post:

          Use the Search Feature. Maybe there is already a solution to your issue.

          1. Update Lay Theme and all Lay Theme Addons
          2. Disable all Plugins
          3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
          4. Now see if your problem solved itself
          5. Go here, see if your problem is listed here:
          Troubleshooting

          When you post:
          1. Post a link to where the problem is
          2. If the problem is difficult to explain, post screenshots / link to a video to explain it

          Thanks!

          Online Users

          I
          L

          Recent Topics

          • C

            centred Carousel fixed width and proportions

          • L

            position Project titles outside the images on the side

          • slow navigation WP admin control panel

          • P

            News element date and title order

          laytheme.com