Lädt...

🔧 Recreating Ambient Mode from Youtube Videos


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Briefly About Ambient Mode

In October 2022, YouTube introduced Ambient Mode, an immersive feature that enhances the viewing experience by extending the video's colors into the interface background. This effect, available exclusively in Dark Mode, reduces eye strain and adds a cinematic touch to video playback.

In this blog, we'll create a dynamic ambient mode similar to YouTube's Ambient Mode.

Step by Step Guide

It's essentially two different stacked videos playing in sync with effects.

Image Description

First, wrap two video elements within a div.container. Here, we'll use the first video element for the ambient mode and the second as our main video. Ensure you mute and remove the controls of the ambient video element.

Image description

Image description

Next, set the container's position to relative and the second video's position to absolute, positioning the main video over the ambient one.

Image description

At this stage, your setup should look similar to the picture above.

Image description

Now, scale up the ambient mode video element so it expands and becomes visible.

Image description

Add some blur to the ambient mode video element.

Image description

Finally, reduce the opacity of the ambient mode video element to enhance the effect.

If you want to create a dynamic ambient mode that syncs with the main video, you can achieve this using JavaScript. Configure actions so that the main video's controls also affect the ambient mode video.

Thanks for following along! I hope you found this guide helpful and easy to understand.

Youtube blog: Open (Watch YouTube in ambient mode)

Demo Site: Youtube-ambient-mode

Source Code: Github

...

🔧 Recreating Ambient Mode from Youtube Videos


📈 57.05 Punkte
🔧 Programmierung

📰 Liven Ambient 0: Firmware-Update für Ambient-Synthesizer


📈 32.15 Punkte
📰 IT Nachrichten

🔧 Recreating YouTube Using HTML and CSS


📈 28.49 Punkte
🔧 Programmierung

📰 Google Assistant: Ambient Mode und Driving Mode – mit passiver Nutzung auf den Spuren von Google Now


📈 28.08 Punkte
📰 IT Nachrichten

🔧 Recreating History: Building a Windows 98 Disk Defrag Simulator with Modern Web Tech


📈 23.17 Punkte
🔧 Programmierung

🔧 Recreating Stripe’s Roles in PropelAuth


📈 23.17 Punkte
🔧 Programmierung

📰 Recreating PyTorch from scratch (with GPU support and automatic differentiation)


📈 23.17 Punkte
🔧 AI Nachrichten

🔧 Recreating a GIF with CSS: Earth Day Edition


📈 23.17 Punkte
🔧 Programmierung

🔧 Recreating a GIF with CSS: Earth Day Edition


📈 23.17 Punkte
🔧 Programmierung

🔧 Recreating a GIF with CSS: Earth Day Edition


📈 23.17 Punkte
🔧 Programmierung

🔧 Recreating the Apple Calculator in Rust using Tauri, Yew and Tailwind


📈 23.17 Punkte
🔧 Programmierung

📰 Recreating Andrej Karpathy’s Weekend Project — a Movie Search Engine


📈 23.17 Punkte
🔧 AI Nachrichten

🔧 Recreating Steam - Medusa & Next.js


📈 23.17 Punkte
🔧 Programmierung

🪟 Microsoft’s new Copilot Gaming Experiences is recreating the legendary Quake II


📈 23.17 Punkte
🪟 Windows Tipps

📰 Progress Continues On Recreating the Babbage Programmable Computer


📈 23.17 Punkte
📰 IT Security Nachrichten

🔧 Dev Dash - Recreating Dev.to with Kendo React


📈 23.17 Punkte
🔧 Programmierung

📰 While Recreating CentOS as 'Rocky Linux', Gregory Kurtzer Also Launches a Sponsoring Startup


📈 23.17 Punkte
📰 IT Security Nachrichten

🎥 Google’s New AI Is Recreating the Whole World to Unlock Superhuman Intelligence


📈 23.17 Punkte
🎥 Künstliche Intelligenz Videos

🐧 Valorant Player Is Recreating The Entire ‘Practice Range’ In Minecraft


📈 23.17 Punkte
🐧 Linux Tipps

🔧 Recreating the Interswitch Homepage with React and TailwindCSS.


📈 23.17 Punkte
🔧 Programmierung

🕵️ Deobfuscating Emotet's JavaScript dropper and recreating the original code step-by-step


📈 23.17 Punkte
🕵️ Reverse Engineering

🐧 Characterizing a workload and recreating it as a synthetic benchmark


📈 23.17 Punkte
🐧 Linux Tipps

🐧 Interest in Recreating iotop in Rust?


📈 23.17 Punkte
🐧 Linux Tipps

🔧 Recreating strlen and strcmp in Assembly: A Step-by-Step Guide


📈 23.17 Punkte
🔧 Programmierung

📰 YouTube Fashion: YouTube startet neue Plattform für alle Videos rund um Beauty, Style und Mode


📈 23.13 Punkte
📰 IT Nachrichten

📰 Google Assistant: Neuer Ambient Mode erscheint für ausgewählte Geräte


📈 22.08 Punkte
📰 IT Security Nachrichten

📰 Ambient Mode: Google verteilt Ladebildschirm mit Assistant-Funktionen


📈 22.08 Punkte
📰 IT Nachrichten

📰 Google 10.41 für Android deutet Benachrichtigungen im Ambient Mode an


📈 22.08 Punkte
📰 IT Nachrichten

📰 Google Assistant: Ambient-Mode zeigt sich im Video


📈 22.08 Punkte
📰 IT Nachrichten

matomo