nookayisee
nookayisee
Explore posts from servers
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
yea
99 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 12/27/2024 in #front-end
how to make this animation in this website?
Howerver if you're doing it just for the heck of it then here's another one i wanted to share https://kprverse.com/
19 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 12/27/2024 in #front-end
how to make this animation in this website?
Just my 2 cents but if you're doing it for a business oriented website that don't. Fancy animations like those do more harm then good.
19 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
i couldn't find any public projects that do this. I'll just have to implement it on my own.
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
if ya'll got any other ideas let me know
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
something like
function loadDesktop(e) {
if (e.window.size > '600px'){
videoTag.src = desktopVideo
window.removeEventListener('resize', loadDesktop)
}
}
function loadDesktop(e) {
if (e.window.size > '600px'){
videoTag.src = desktopVideo
window.removeEventListener('resize', loadDesktop)
}
}
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
i'll just set a one time self destructing event listener to load the desktop version of the video if the page is resized
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
someone shared this in the other server https://scottjehl.com/posts/responsive-video/
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
i can't go digging if i don't know anyting about it. :/
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
any keywords that you remember from it?
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
lol is there a a big sos button that calls kevin
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
yep. same here.
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
can you try this exact code on your machine?
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
i removed the source tag while sending it to you
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
<link href="css/style.css" rel="stylesheet" />
</head>
<body>
<video>
<source
src=""
media="(max-width: 600px)"
/>
<source
src=""
media="(min-width: 1080px)"
/>
</video>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
<link href="css/style.css" rel="stylesheet" />
</head>
<body>
<video>
<source
src=""
media="(max-width: 600px)"
/>
<source
src=""
media="(min-width: 1080px)"
/>
</video>
</body>
</html>
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
removing it doesn't work either
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
that's relevent?
99 replies
KPCKevin Powell - Community
Created by nookayisee on 12/29/2024 in #front-end
media query not triggering on source tag when page is resized
look at this. it's just an index.html i created and even this doesn't work. no react, vite, tailwind. nothing fancy
99 replies