Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    1. Home
    2. melo_lenosier
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 13
    • Posts 33
    • Best 3
    • Controversial 0
    • Groups 0

    melo_lenosier

    @melo_lenosier

    3
    Reputation
    424
    Profile views
    33
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    melo_lenosier Unfollow Follow

    Best posts made by melo_lenosier

    • text or div FadeIn / fadeout every row on fullscreen slider

      Hello everybody,

      I would like to know if there is a way of applying some simple CSS transition effect FadeIn and Out for some text or div every time you slide up or down a row when the Fullscreen slider is activated.

      I was trying to adapt the JS proposed in this thread Change nav and logo text to white/black when scrolling, but unfortunately I didn't have any success. The code doesn't work when the Fullscreen slider is activated, but it does work when it is not.

      Anybody that could help on this?
      Thanks

      Melo

      posted in General Discussion
      M
      melo_lenosier
    • RE: Image hover addon with video possible?

      If anybody needs it, here is the script I used.
      It was tricky because there was an annoying phenomena between the hover and the scroll functions. Basically while scrolling the page, the browser (Chrome especially) doesn't send any other mouse coordinates, therefore the hovered video was constantly there till the scroll was stopped.

      Here is a script that avoid this problem:

      <script>
      let hoveredElement;
      let mouseX = 0, mouseY = 0;
      
      document.addEventListener('DOMContentLoaded', () => {
        document.addEventListener('mousemove', event => {
          mouseX = event.clientX;
          mouseY = event.clientY;
      
          hover(event.target);
        });
      
        document.addEventListener('scroll', () => {
          const hoverTarget = document.elementFromPoint(mouseX, mouseY);
          if (hoverTarget) {
            hover(hoverTarget);
          }
        });
      });
      
      function hover(targetElement) {
        // If the target and stored element are the same, return early
        // because setting it again is unnecessary.
        if (hoveredElement === targetElement) {
          return;
        }
      // On first run, `hoveredElement` is undefined.
        if (hoveredElement) {
          if (hoveredElement.hasAttribute("data-videoid")) {
      document.getElementById(hoveredElement.getAttribute("data-videoid")).classList.remove('hoverscrolled');
           console.log(hoveredElement.getAttribute("data-videoid"));
           console.log(document.getElementById(hoveredElement.getAttribute("data-videoid")));
      
      }
      
        }
      
        hoveredElement = targetElement;
      if (hoveredElement.hasAttribute("data-videoid")) {
      document.getElementById(hoveredElement.getAttribute("data-videoid")).classList.add('hoverscrolled');
            console.log(hoveredElement.getAttribute("data-videoid"));
           console.log(document.getElementById(hoveredElement.getAttribute("data-videoid")));
      }
      
      }
      </script>
      

      HTML:

      <div data-videoid="one_data"  >
      </div>
      
      <video id="one_data" class="vid_background" autoplay muted loop>
        <source src="https://somevideo.mp4" type="video/mp4">  Your browser does not support HTML5 video.
      </video>
      
      

      CSS:

      video.vid_background{
           opacity: 0;
           left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          z-index: -5;
          width: 40%;
          position: fixed;
          height: 50%;
          -webkit-transition: none;
          -o-transition: none;
          transition: none;
       }
       
      video.vid_background.hoverscrolled  {
          opacity: 1;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          z-index: -5;
          width: 40%;
          position: fixed;
          height: 50%; 
          -webkit-transition: none;
          -o-transition: none;
          transition: none;
       }
      
      posted in General Discussion
      M
      melo_lenosier
    • RE: Carousel 100vh on mobile not working

      Nothing of that kind. Everything is set the same: 0 margin or padding.
      It's a Carousel problem.
      But thanks for checking! :)

      posted in General Discussion
      M
      melo_lenosier

    Latest posts made by melo_lenosier

    • RE: Pictures disappear with Fullscreen Slider Addon!

      @arminunruh

      Same for me.

      DEKSTOP:
      It worked with fading effects at the beginning, but now it stopped. When fade effect is on, now there is no content in the slides.

      MOBILE:
      Fullscreenslider works on both slide and fade effect, but each slide is never 100vh! There is a weird margin at the bottom connected to some Footer CSS.

      Here the website I am working on:
      https://www.davidebernardis.com/

      It would be awesome if you could solve this asap!
      Thanks a lot Armin!
      Melo

      posted in Bug Reports
      M
      melo_lenosier
    • fullscreen slider on mobile weird footer margin space!

      Hello again,

      I just found out this bug on the mobile.
      When fullscreen slider is activated, in the mobile version you have a weird white margin at the bottom of every slide. I checked with the inspector and it seems attributed some min-height: calc (100vh - 80px) to a not activated footer. Indeed I dont use any footer for this website.

      Somebody has the same issue?

      Thanks in advance,
      Melo

      posted in Bug Reports
      M
      melo_lenosier
    • text or div FadeIn / fadeout every row on fullscreen slider

      Hello everybody,

      I would like to know if there is a way of applying some simple CSS transition effect FadeIn and Out for some text or div every time you slide up or down a row when the Fullscreen slider is activated.

      I was trying to adapt the JS proposed in this thread Change nav and logo text to white/black when scrolling, but unfortunately I didn't have any success. The code doesn't work when the Fullscreen slider is activated, but it does work when it is not.

      Anybody that could help on this?
      Thanks

      Melo

      posted in General Discussion
      M
      melo_lenosier
    • RE: Image hover addon with video possible?

      If anybody needs it, here is the script I used.
      It was tricky because there was an annoying phenomena between the hover and the scroll functions. Basically while scrolling the page, the browser (Chrome especially) doesn't send any other mouse coordinates, therefore the hovered video was constantly there till the scroll was stopped.

      Here is a script that avoid this problem:

      <script>
      let hoveredElement;
      let mouseX = 0, mouseY = 0;
      
      document.addEventListener('DOMContentLoaded', () => {
        document.addEventListener('mousemove', event => {
          mouseX = event.clientX;
          mouseY = event.clientY;
      
          hover(event.target);
        });
      
        document.addEventListener('scroll', () => {
          const hoverTarget = document.elementFromPoint(mouseX, mouseY);
          if (hoverTarget) {
            hover(hoverTarget);
          }
        });
      });
      
      function hover(targetElement) {
        // If the target and stored element are the same, return early
        // because setting it again is unnecessary.
        if (hoveredElement === targetElement) {
          return;
        }
      // On first run, `hoveredElement` is undefined.
        if (hoveredElement) {
          if (hoveredElement.hasAttribute("data-videoid")) {
      document.getElementById(hoveredElement.getAttribute("data-videoid")).classList.remove('hoverscrolled');
           console.log(hoveredElement.getAttribute("data-videoid"));
           console.log(document.getElementById(hoveredElement.getAttribute("data-videoid")));
      
      }
      
        }
      
        hoveredElement = targetElement;
      if (hoveredElement.hasAttribute("data-videoid")) {
      document.getElementById(hoveredElement.getAttribute("data-videoid")).classList.add('hoverscrolled');
            console.log(hoveredElement.getAttribute("data-videoid"));
           console.log(document.getElementById(hoveredElement.getAttribute("data-videoid")));
      }
      
      }
      </script>
      

      HTML:

      <div data-videoid="one_data"  >
      </div>
      
      <video id="one_data" class="vid_background" autoplay muted loop>
        <source src="https://somevideo.mp4" type="video/mp4">  Your browser does not support HTML5 video.
      </video>
      
      

      CSS:

      video.vid_background{
           opacity: 0;
           left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          z-index: -5;
          width: 40%;
          position: fixed;
          height: 50%;
          -webkit-transition: none;
          -o-transition: none;
          transition: none;
       }
       
      video.vid_background.hoverscrolled  {
          opacity: 1;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          z-index: -5;
          width: 40%;
          position: fixed;
          height: 50%; 
          -webkit-transition: none;
          -o-transition: none;
          transition: none;
       }
      
      posted in General Discussion
      M
      melo_lenosier
    • RE: Image hover addon with video possible?

      I am also very interested in this. Video-hover would be great.
      Thank you!

      posted in General Discussion
      M
      melo_lenosier
    • RE: Custom CSS file location

      I see... Could I please know anyway where this compiler file is?
      Thank you

      posted in General Discussion
      M
      melo_lenosier
    • Custom CSS file location

      Hello everybody,

      I already tried to search something about it in the forum, but with no luck.
      I was wondering if it would be possible to access to the Custom CSS & HTML file via ftp and modify it freely on whatever editor code app. I think it would be much easier pressing cmd+S every time, as well as finding the right line, etc.
      I already tried to find the file in the themes>lay folder in the ftp, but with no result.

      Did anybody tried it? Is it possible?

      Thanks in advance,
      Melo

      posted in General Discussion
      M
      melo_lenosier
    • Mobile Gridder not working after Gridder Defaults update!

      Hello there,
      I report here a pretty big problem.
      After creating and editing several pages and project I updated and saved the Gridder Defaults and now the Phone Layout it is not showed correctly: the contents go over the grid (which seem visualized as the desktop one). It's impossible to operate.

      Here a screenshot:
      Schermata 2020-05-07 alle 10.01.31.png

      Hope it's fixable!
      Melo

      posted in Bug Reports
      M
      melo_lenosier
    • RE: Cover option on mobile not working

      Quote!
      Same to me.

      posted in Bug Reports
      M
      melo_lenosier
    • Search function not working properly

      Hello Armin,
      hope you are well :)

      I am doing this website for a cinema web magazine (still in progress) and I wanted to introduce the search function you did. It works, but not properly. When I write something in the search box it gives me results that don't contain that specific word inside. For example when you write "Carlo" it shows you 2 results: one is the correct one about Carlo Sironi and then there is another one in which does not appear the word "Carlo" at all, but it displays it anyway...

      Am I missing something?
      Here you have the website.

      Thanks,
      Melo

      posted in Bug Reports
      M
      melo_lenosier