Skip to content

Instantly share code, notes, and snippets.

View bbauska's full-sized avatar
🏠
Working from home

Brian Bauska bbauska

🏠
Working from home
View GitHub Profile
@bbauska
bbauska / index.html
Created July 8, 2026 01:07
Responsive YouTube video background
<div class="cover">
<div class="hi">This is fully responsive & mobile friendly YouTube video background scaled with 16/9 aspect ratio. Actually bunch of videos - js loads randomly 1 of 4 with different start/end times, then it loops through all the vids.<br><br> Click <span>here</span> to <em>un</em>mute & <span>here</span> to see another vid (<em>0</em> of <em>0</em>). Check all of them! They're quite awesome. ;]</div>
</div>
<div class="tv">
<div class="screen mute" id="tv"></div>
</div>
@bbauska
bbauska / index.html
Created April 15, 2026 17:27
Search Input animation
<div class="search">
<svg class="search-svg" viewBox="0 0 320 70"
data-init="M160,3 L160,3 a27,27 0 0,1 0,54 L160,57 a27,27 0 0,1 0,-54 M197,67 181.21,51.21"
data-mid="M160,3 L160,3 a27,27 0 0,1 0,54 L160,57 a27,27 0 0,1 0,-54 M179.5,49.5 179.5,49.5"
data-active="M27,3 L293,3 a27,27 0 0,1 0,54 L27,57 a27,27 0 0,1 0,-54 M179.5,49.5 179.5,49.5">
<path class="search-svg__path" d="M160,3 L160,3 a27,27 0 0,1 0,54 L160,57 a27,27 0 0,1 0,-54 M197,67 181.21,51.21" />
</svg>
<input type="text" class="search-input" />
<div class="search-close"></div>
</div>
@bbauska
bbauska / index.html
Created July 5, 2025 07:53
Space Globe 2
<div class="banner">You can zoom in and click and drag to explore the scene.</div>
<a href="https://www.isladjan.com/about/" class="btn btn-left" target="_blank">My Works</a>
<button class="btn btn-right" id="fullscreenBtn">Go Fullscreen</button>
<div class="webgl"></div>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.161.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.161.0/examples/jsm/"
@bbauska
bbauska / index.html
Last active April 6, 2023 05:27
YouTube Originals Intro
<div id="green-filter"></div>
<div id="top-gradient" class="gradient"></div>
<div id="bottom-gradient" class="gradient"></div>
<div id="logo-wrapper">
<div id="logo">
<div id="logo-border" class="absolute-centered"></div>
<div id="logo-border-inner" class="absolute-centered"></div>
<div id="logo-text">
<div id="hulu-text" class="zen-dots-font">hulu</div>
<div id="originals-text" class="jakarta-sans-font">ORIGINALS</div>