Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #948964

    Hi,

    I want a color overlay (0.8 transparency) over a youtube video element.
    Is it possible because in the video element settings there is no possibility?
    See screenshot were on the right hand you see 2 video’s with the same blue transparent overlay.
    THX Freek

    #949402

    Hey Freek,

    I’m not sure if that would be possible, but send us a link to the page where you want this done and we’ll have a look at it.

    Best regards,
    Rikard

    #949428

    an overlay will be possible – but how do you start the video.
    If you let it start automatically – yes is possible – but your sitevisitors would have no chance to stop it then. …

    filtering is possible and there are no z-index conflicts then. f.e. try:

    .avia-video iframe, .js_active .avia-iframe-wrap iframe, div .avia-video .avia-iframe-wrap {
    -webkit-filter: sepia(100%) saturate(200%) brightness(90%) hue-rotate(160deg);
    filter: sepia(100%) saturate(200%) brightness(90%) hue-rotate(160deg);
    }

    see results here https://webers-testseite.de/youtube-masonry/
    this combination is a trick :
    1) the container is forced to be seen in sepia ( old foto-style) – but sepia 100% is not saturated enought to get strong colors so:
    2) saturate is followed to get bright colored “overlays”
    3) with brightness ( thats clear) and afterwards
    4) the hue-rotate angle puts the now one-colored thing to a color.

    play a bit with saturate and hue-rotate to get the color you like

    #949438

    Hi,

    That doesn’t work unfortunately. The video does not start automatically and we do not want that.
    The code I use is:
    [av_video src='https://www.youtube.com/watch?v=uH8a0mncg-w' format='16-9' width='16' height='9' av_uid='av-aih7b' custom_class='']
    The video element is iin a color section/one fourth column element.
    see: URL to test page
    THX Freek

    add.
    I use this code:

    .html5-video-container  {-webkit-filter: sepia(1) brightness(0.4) hue-rotate(150deg); filter: sepia(1) brightness(0.4) hue-rotate(150deg);
    }

    This adds a filter over the element, but it is not the right color. How can I change the color in a percentage of hex code #004be1?

    THX again Freek

    • This reply was modified 6 years, 7 months ago by Freek.
    #949452

    1) : i’m participant as you so i do not see private messages. The link is new for me.
    2) : my code shows you a way to do it for video ALB setted videos.
    3) : this will be the only possibility to get this – because if you do not want to start with autoplay ( and thats my comment above) there will be no overlay option – an overlay will hamper the play-button to work.
    4) : you see in my code above that there is after sepia filter a saturate filter – because sepia colorizing is not in intense color. So try to insert after your sepia filter a saturate one.
    5) : maybe try this in your code (don’t forget webkit-filter option) sepia(1) saturate(500%) brightness(0.9) hue-rotate(170deg)

    #949458

    Hi,

    I changed the code and it worked. Just one moer question. How can I change the transparency? I want the filter less transparent, like the mockup screenshot in my first message. THX for the awesome support! Freek

    see result URL

    #949462

    here is another method – i did not know that pointer-event has an influence of the links down under.
    ( i gave a custom class to one of the surrounding containers: with-overlay)

    .with-overlay .avia-iframe-wrap::after { 
      content:"";
      width:100%;
      height:100%;
      position:absolute;
      background-color: rgba(0, 0, 255, 0.5);
      pointer-events: none;
    }

    see my test page above – this effect is not nice – It’s like a veil over

    #949468

    maybe you do a grayscale filter before sepia one :

    filter: grayscale(100%) sepia(100%) saturate(500%) brightness(90%) hue-rotate(165deg);

    #949508

    ok – we never stop learning:

    but : Safari does not do that on my end here

    Info from can i use this (Partial in Safari refers to not supporting the hue, saturation, color, and luminosity blend modes )

    and the color blend mode is the interesting one for you .

    there is a workaround since there was a mix-blend-mode
    give the surrounding container a custom class and:

    .with-overlay .avia-iframe-wrap::after {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        background-color: #004ae1;
        pointer-events: none;
        mix-blend-mode: color;
    }

    you can see here a list of that: https://css-tricks.com/almanac/properties/m/mix-blend-mode/

    the options are very similar to photoshop layer styles

    #949699

    can you please answer under the latest thread – it is hard to have in mind what was actually relevant.

    try a different intense but lighter blue: f.e. #236bff

    #950132

    I changed the code to mix-blend-mode: hard-light; and it works for me.
    THX for all the help. Freek

    #950142

    by the way – was it complex to integrate the edfm-fly-menu to enfold ?

    #950221

    No it is a plugin with easy install. After installation I did some modification but it is no big deal.
    See URL to menu plugin

    THX again Freek

    #951823
    #952227

    Hi,

    Thanks for sharing @guenni007, much appreciated.

    Best regards,
    Rikard

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.