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

T

Tim B

@Tim B
About
Posts
31
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Vimeo embed api / unmute and mute not working - why? any workarounds?
    T Tim B

    This is the rough code that works and that I tested with brackets:

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vimeo Video with Unmute Button</title>
    <style>
    .unmute-btn {
        cursor: pointer;
        color: blue;
        text-decoration: underline;
    }
    .muted {
        color: red;
    }
    </style>
    </head>
    <body>
    <div style="padding:61.86% 0 0 0;position:relative;">
        <iframe id="vimeo-player" src="https://player.vimeo.com/video/926876420?autoplay=1&muted=1&badge=0&autopause=0&player_id=0&app_id=58479&controls=0" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="ON — OBSERVING THE SENSATION OF MOVEMENT"></iframe>
    </div>
    <div class="unmute-btn">Unmute</div>
    <script src="https://player.vimeo.com/api/player.js"></script>
    <script>
    document.addEventListener('DOMContentLoaded', function() {
        const player = new Vimeo.Player(document.getElementById('vimeo-player'));
        const unmuteBtn = document.querySelector('.unmute-btn');
        let isMuted = true;
    
        unmuteBtn.addEventListener('click', function() {
            if (isMuted) {
                player.setMuted(false);
                unmuteBtn.textContent = 'Mute';
                unmuteBtn.classList.add('muted');
            } else {
                player.setMuted(true);
                unmuteBtn.textContent = 'Unmute';
                unmuteBtn.classList.remove('muted');
            }
            isMuted = !isMuted;
        });
    });
    </script>
    </body>
    </html>
    
    
    Bug Reports

  • Vimeo embed api / unmute and mute not working - why? any workarounds?
    T Tim B

    Hello :)

    after some time I am back posting here with a video embed related question.

    Why is it that this code does not work:

    <div style="padding:61.86% 0 0 0;position:relative;">
        <iframe id="vimeo-player" src="https://player.vimeo.com/video/926876420?autoplay=1&muted=1&badge=0&autopause=0&player_id=0&app_id=58479&controls=0" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="ON — OBSERVING THE SENSATION OF MOVEMENT"></iframe>
    </div>
    <button class="unmute-btn">Unmute Video</button>
    <script src="https://player.vimeo.com/api/player.js"></script>
    <script>
        const player = new Vimeo.Player(document.getElementById('vimeo-player'));
    
        const unmuteBtn = document.querySelector('.unmute-btn');
        unmuteBtn.addEventListener('click', function() {
            player.setMuted(false).then(function() {
                player.setVolume(1);
            }).catch(function(error) {
                console.error('Error unmuting video:', error);
            });
        });
    </script>
    

    In more detail: it is not possible to toggle mute or unmute on vimeo embeds. When using this code in brackets on a normal html it is working.

    I would like to embed videos super clean on autoplay and then click on a simple text element that says "unmute". this should toggle the video to be unmuted and the text to be changed to "mute".

    I already got some good code with codeium but somehow something within Laytheme seems to prevent this from working? Any ideas?

    Would love to make this work.

    cheers :)

    Bug Reports

  • Menu Point Active Font in Italic
    T Tim B

    @mariusjopen would be great to know how tho? Because as far as I could inspect the lay theme menu works a little on its own? At least when I inspect I can only identify it as "span"

    Bildschirmfoto 2022-03-21 um 12.00.03.jpg

    And with that the site title always also reacts, so it responds to the css styles as well, which looks cheap.

    I also tried this:

    nav.primary a:visited {
    

    But it did not work either. As well as .active

    Best,
    Tim

    General Discussion

  • Image Hover - make HTML5 Video (instead of GIF)
    T Tim B

    I could solve the described problem by giving my text stack that includes the hover links an own css id that had the following property:

    #anchor{
    z-index:99999;
    }
    

    Now the videos are fullscreen and in the background.

    Addons

  • Image Hover - make HTML5 Video (instead of GIF)
    T Tim B

    @Richard said in Image Hover - make HTML5 Video (instead of GIF):

    https://www.w3schools.com/cssref/pr_class_position.asp

    Okay perfect, I can use that! It works almost as needed..

    Added these to the css:

    .show video{
    opacity:1 !important;
    position:fixed;
    width: 100%;
    }
    

    -> now the video loops fullscreen BUT in the foreground.

    Any idea on what to add or change so that the video now actually sits in the background? Right now its sitting above the links I am hovering over (wich should of course still be visible. I already tried using z-index but that didn't help as then the video was sitting behind the links but only in the height of the (what I think to be the) link div...

    .show video{
    opacity:1 !important;
    position:fixed;
    width: 100%;
    z-index:-1;
    }
    

    Bildschirmfoto 2022-03-18 um 15.49.04.jpg

    Addons

  • New Project Index Styling
    T Tim B

    @Richard thank you Richard. This helped a little. In my case Filters could be Productions or Directors of films. As well as other crew or Brands.

    I would have needed to create multiple categories named after e.g. directors to then link them to the respective project.

    Switching it around worked, also changing the widths of each column to create gaps. But what did not work was using individual text layouts. So for example I would have needed the option to make certain columns stick to the left or the right side in order to make it work in terms of design purposes.

    Maybe this can help to improve this feature.

    Best,
    Tim

    General Discussion

  • Image Hover - make HTML5 Video (instead of GIF)
    T Tim B

    @Richard

    Dear Richard, yes this could work. It does work for example to set a video as row background, give the row a class/id and follow all the steps before. The video only gets shown when hovering the link, its also fullscreen.

    ALL fine. BUT:

    You can't use multiple videos I think. For example if I want to build an own index by showing multiple project names functioning as links, giving all the links the described ids and matching videos, I won't be able to stack all the videos to the same position. So I will end up with multiple rows of videos and not with ONE one pager without a scrollbar, where all videos appear at the same position.

    A modification of the image hover to be able to be used as a video hover with fullscreen function would be great.

    If its still possible to achieve this by any other solution, I would be more than happy to hear it.

    Best,
    Tim

    Addons

  • Image Hover - make HTML5 Video (instead of GIF)
    T Tim B

    Dear, Richard,

    this was very very helpful for me. Could you help me find a solution for what now appears to be in the way because of the Gridder:

    I cannot put multiple videos on the same position as the image hover would have been. Is there a way to override the position of the videos in the Gridder so that every video is on a fixed position and ideally the page is a one page without scrollbar?

    Probably you need to edit the css lines? Also what would be the solution to make the video fullscreen in the background on hover?

    Cheers and thanks,

    Tim

    Addons

  • New Project Index Styling
    T Tim B

    Hey there guys, I would also like to add, that for me some key features are missing to be able to incorporate the nice feature of the project index into my site. These are:

    • order of columns
    • Adding a simple number count as a "filter" for example: 1 - project x 2- Project z (mostly because of design purposes)

    Would it be possible to implement these things? Or am I actually missing the option to do these things?

    General Discussion

  • Cursor over intro video
    T Tim B

    @Richard said in Cursor over intro video:

    .intro {
    cursor: url(http://timbieker.com/wp-content/uploads/2021/05/Artboard-2.png) 4 12, auto !important;
    }

    Richard!

    Always there to help. Glad you like it, I was polishing it quite a bit after you gave a lot of helping insights. It helped now to address the intro cursor! Awesome.

    Thank you very much.

    General Discussion

  • Cursor over intro video
    T Tim B

    Dear everyone,

    is there a reason why this is not working for an intro with an image? In my case: timbieker.com the cursors are not shown in the intro. Only after clicking and getting to the actual site. Didn't do anything different, I think.

    Best,
    Tim

    General Discussion

  • Dynamic background color fade when scrolling to certain ID on page
    T Tim B

    Hi @Richard,

    I know there are a lot of questions here and this also might be too specific, but maybe this topic just got crowded by other postings. So I hope you might have an answer to this for me. As I said before I have the feeling that I am already super close but just didn't see a mistake I did or so.

    Maybe also @mariusjopen or @arminunruh know if there is a fairly easy fix for this.

    This is the last thing missing for my project. Thanks for building and also updating lay theme as well as providing so much help here. Have a nice week!

    Cheers

    General Discussion

  • Dynamic background color fade when scrolling to certain ID on page
    T Tim B

    Update:

    following this: https://codepen.io/Nasir_T/pen/jmvwEP feels super close..

    .colorChange{
      height:2800px;
      background-color:black;
      transition: background-color 0.5s;
    }
    #block{
      background-color:black;
      width:1px;
      height:1px;
      margin-top:1300px;
      display:overflow-block;
    }
    
    jQuery(window).scroll(function () {
    
    jQuery('#bgcontainer').each(function () {
    
    var topOfWindow = jQuery(window).scrollTop(),
    
    bottomOfWindow = topOfWindow + jQuery(window).height();
    
    var boxPos = jQuery('#block').offset().top;
    
    if(boxPos <= bottomOfWindow-100 && boxPos >= topOfWindow){
    jQuery("#bgcontainer").css("background-color", "white"); 
    }else{
    
    jQuery("#bgcontainer").css("background-color", "black"); 
    
    }
    
    });
    
    });
    
    <script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
    <div id="bgcontainer" class="colorChange">
      <div id="block"></div>
    </div>
    

    When adding this html into the custom html at top section it at least works to show the desired effect. BUT it gets applied to the top of every page before then showing the normal part of the page..

    How could I make it triggered by the stills carousels using the custom classes and ids? Adding the html to the pages separately creates big gaps rather than being added in the background...

    Hope this is an easy thing for anyone who understands css and js better than me..

    cheers!

    General Discussion

  • Dynamic background color fade when scrolling to certain ID on page
    T Tim B

    Dear Richard,

    thanks for the link.

    I felt this might be the solution and I am almost there, but I couldn't make it work unfortunately.

    I tried to give the "Stills" Row a css tag according to the instructions on the link and changed the namings accordingly.

    I tried to google further and found this:
    https://stackoverflow.com/questions/44032900/css-change-background-color-at-certain-point

    https://codepen.io/Nasir_T/pen/jmvwEP

    I changed the ID to "stills" to name it with the stills gallery. And also I changed the $ to jQuery.

    HTML

    <script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
    <div id="bgcontainer" class="colorChange">
      <div id="stills"></div>
    </div>
    

    CSS

    .colorChange{
      height:2800px;
      background-color:black;
      transition: background-color 0.5s;
    }
    #stills{
      background-color:white;
      width:1px;
      height:1px;
      margin-top:1300px;
      display:inline-block;
    }
    

    JS

    jQuery(window).scroll(function () {
    
    jQuery('#bgcontainer').each(function () {
    
    var topOfWindow = jQuery(window).scrollTop(),
    
    bottomOfWindow = topOfWindow + jQuery(window).height();
    
    var boxPos = jQuery('#stills').offset().top;
    
    if(boxPos <= bottomOfWindow-100 && boxPos >= topOfWindow){
    jQuery("#bgcontainer").css("background-color", "white"); 
    }else{
    
    jQuery("#bgcontainer").css("background-color", "black"); 
    
    }
    
    });
    
    });
    

    BUT this is not really doing what I wanted. It made the stills gallery disappear and it created empty spaces and so on.

    I felt like this was by far the most promising one:

    /* If the element is completely within bounds of the window, fade it in */
          if (objectBottom < windowBottom) { 
            //object comes into view (scrolling down)
            $(".sidebar").removeClass("clear-background");
            if(!$(".sidebar").hasClass("black-background)
               $(".sidebar").addClass("black-background"); // reset both
          } else { 
            //object goes out of view (scrolling up)
            $(".sidebar").removeClass("black-background");
            if(!$(".sidebar").hasClass("clear-background")) // reset both
              $(".sidebar").addClass("clear-background");
          }
    

    This is one comment from the link you were sending. But I just can't make it work for my purposes...

    The idea would be to set the stills gallery as a css ID and/or class and then create the js in a way that it gets toggled by this to change the background:

    Bildschirmfoto 2021-04-06 um 13.33.16.jpg

    I am lost due to my limited understanding of css and js...but I feel so close to where I want to end..

    General Discussion

  • Dynamic background color fade when scrolling to certain ID on page
    T Tim B

    This is maybe also quite close:

    https://codepen.io/atomiks/pen/dgMNwG

    As this is almost the last thing to do for my site I hope someone can help. My css ans js knowledge is too limited unfortunately.

    General Discussion

  • Dynamic background color fade when scrolling to certain ID on page
    T Tim B

    Hello dear laytheme forum,

    I would like to create a dynamic background color change when scrolling on a certain element on my page.

    https://timbieker.com/ashlynfw21

    My projects start with a video section, followed by a stills section before landing on the footer on the bottom of the page.

    I would like my site to dynamically change its background color from black to white once I scroll to the stills section.

    Changing the background color of the elements in the row gutter is not an option as this would not change the complete background of the page.

    Therefore I set a "white scroll" as # for the id of the desired elements/rows.

    I would probably have to address this id in css and tell it to have a white background but for the whole page. Also it probably needs JS to be dynamic and respond to the scroll.

    I searched online quite a lot but can only find super complex scroll effects with multiple colors, certain pixel scroll sizes, etc.

    This is (I think) a more simple effect than what I can find online. Maybe its "as easy" as I think and someone can help.

    http://jsfiddle.net/dtZDZ/

    This already goes in this direction, but i can't make it work for my purpose.

    Desired order and color:
    black (video)
    white (stills)
    black (everything after stills: footer)

    Thank you for helping!

    Cheers,
    Tim

    General Discussion

  • Custom Cursor on HTML5 Video
    T Tim B

    Thank you Richard!

    This worked indeed. Thanks for the tip with inspecting. I couldn't figure out the elements to address them properly in css. Its all trial and error for me regarding this..

    Great to have such kind and super on point help here in the forum!

    Cheers,
    Tim

    General Discussion
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search