Lay Theme Forum

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

    Cover disables the background elements

    General Discussion
    2
    5
    29
    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
      prazzo101 last edited by

      Hello!
      I’ve included a javascript that creates a particle animation as a background element on my website and a linear color gradient that is created by CSS. When I activate the cover feature, the color gradient and particle.js get disabled.

      I’ve found this topic and tried that solution, but it didn’t do anything.
      I am already using the z-index for different parts of the website to have the particles overlapping certain elements, so I am not quite sure if I am breaking something by doing this :)

      What should I try to do to fix this?
      Thank you!!

      P 1 Reply Last reply Reply Quote 0
      • P
        prazzo101 @prazzo101 last edited by

        I found a way to fix this, just if anyone run into the same problem as I did.

        1. Put the particle-Animation in front of the other elements by adding a higher z-index value and changing the position to fixed since I didn’t want it to move when I’m scrolling down

        #particles-js {
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: 2;
        }

        1. Moving the gradient from the body-Element to #grid

        #grid {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;

        background: linear-gradient(270deg, #ffc647, #FB4647, #ffffff);
        background-size: 800% 800%;
        -webkit-animation: Gradient 15s ease infinite;
        -moz-animation: Gradient 15s ease infinite;
        animation: Gradient 15s ease infinite;
        

        }

        That did the trick for me.

        If I did something stupid and there is a much better way to do it, please let me know :)

        1 Reply Last reply Reply Quote 1
        • arminunruh
          arminunruh Global Moderator last edited by

          good job !

          P 1 Reply Last reply Reply Quote 0
          • P
            prazzo101 @arminunruh last edited by

            @arminunruh Doesn’t work for mobile though :(
            I had to disable Cover for mobile, otherwise the gradient in the background would be disabled again.

            Is there a way to make that work on mobile too?

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

              try to use the inspector of your browser and use custom css

              i dont have time to come up with custom css for you :/

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Post a link to where the problem is if possible, please <3
              I don't answer or check forum DMs, please just post on the forum.
              Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

              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. When using a WordPress Cache plugin, disable it or clear your cache. Now see if your problem solved itself.
              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

              U
              P
              J
              H
              L
              S

              Recent Topics

              • B

                Portrait images are cut off in carousel

              • J

                Images Size when scale Browser

              • Search as icon instead of text?

              • FILTER Categories showing all projects

              laytheme.com