-
AuthorPosts
-
April 30, 2018 at 10:36 am #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 FreekMay 1, 2018 at 7:34 am #949402Hey 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,
RikardMay 1, 2018 at 8:24 am #949428an 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
May 1, 2018 at 8:58 am #949438Hi,
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 Freekadd.
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.
May 1, 2018 at 9:30 am #9494521) : 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)
May 1, 2018 at 9:47 am #949458Hi,
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
May 1, 2018 at 10:06 am #949462here 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
May 1, 2018 at 10:15 am #949468maybe you do a grayscale filter before sepia one :
filter: grayscale(100%) sepia(100%) saturate(500%) brightness(90%) hue-rotate(165deg);
May 1, 2018 at 12:27 pm #949508ok – 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
May 1, 2018 at 9:39 pm #949699can 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
May 2, 2018 at 4:05 pm #950132I changed the code to
mix-blend-mode: hard-light;
and it works for me.
THX for all the help. FreekMay 2, 2018 at 4:51 pm #950142by the way – was it complex to integrate the edfm-fly-menu to enfold ?
May 2, 2018 at 7:20 pm #950221No it is a plugin with easy install. After installation I did some modification but it is no big deal.
See URL to menu pluginTHX again Freek
May 4, 2018 at 7:40 pm #951823maybe this could be a nice topic for you: https://kriesi.at/support/topic/playing-only-one-youtube-video-at-a-time/
May 6, 2018 at 6:54 am #952227 -
AuthorPosts
- You must be logged in to reply to this topic.