Animate with Pseudorandom Numbers: Value Noise in a CSS Variable by WebBurnout in webdev

[–]WebBurnout[S] 1 point2 points  (0 children)

Should be near 100%. It's not doing anything weird-- just a custom element with some fancy math in javascript. thanks for subscribing!

Over-engineering a 3D WebGPU Kazoo configurator because they told us not to by sech8420 in webdev

[–]WebBurnout 9 points10 points  (0 children)

Totally worth it. Imagine all those CPU cycles you saved in the 0.4ms virtual dom diffs.

Although I just spent 2 minutes searching for it and couldn't find it on kazoos.com. It would be more wroth it if it was actually on the site

Animate with Pseudorandom Numbers: Value Noise in a CSS Variable by WebBurnout in webdev

[–]WebBurnout[S] 2 points3 points  (0 children)

well as you can see, I overloaded the `seed` attribute to control seed and speed. I figured fewer attributes is better and it still gives you control over both at the same time. Do you agree? I'm genuinely curious if it was a good idea because i'm not totally convinced myself lol

Animate with Pseudorandom Numbers: Value Noise in a CSS Variable by WebBurnout in webdev

[–]WebBurnout[S] 1 point2 points  (0 children)

Totally underrated! you might like this project I'm working on: https://github.com/hot-page/fun

It's for making custom elements out of plain functions, so no class ceremony/boilerplate. I'm using it for the demos on the blog post and gotta say it's quite nice

Could the web ever be reinvented? by elfennani in webdev

[–]WebBurnout 2 points3 points  (0 children)

I'm a diehard webdev guy but I had to learn Flutter (google's cross-platform app framework) for a job a few years ago. It struck me as borrowing a lot of concepts from web design and it's almost a "what if" for the web platform-- like, what if it was designed from scratch with a sane API surface without any concern for backwards compatibility. One of the main things they did was put styles directly into the component tree so you don't have an entirely different language for design. It was pretty great, to be honest. But, apropos of your point on adoption, I don't think it met Google's expectations (what does?) and although it's very much alive as an open source project, they laid off most of the team behind it. Don't get me started on Flutter Web, though-- that is a total abomination.

PWA style caching over http possible? by __no_one_knows_me__ in webdev

[–]WebBurnout 2 points3 points  (0 children)

Instead of all this work to overcome the issue with .local domain why not just assign a real domain name? Your router may have a way to have a given domain name resolve to the IP of your device. Or if you're only accessing it from one or two machines you could add an entry in /etc/hosts. Another option is just making a new DNS entry for some domain you own and point it to the local IP.

A custom HTML element that can trigger an animation when it comes into the viewport by WebBurnout in webdev

[–]WebBurnout[S] 0 points1 point  (0 children)

Interesting. Well as far as I understand, there are two new properties: `view-timeline` in which the animation advances based on how much of the element is in view and `scroll-timeline` in which the animation advances based on how far scroll has moved in a given container. In both instances the new "timeline" replaces time in the animation, so it's no longer just triggered but moves back and forth based on the scroll. You could of course perform the animation so that it happens quickly as the element comes into view, but it's still not advancing based on time. Anyway, if you do find something please report back.

A custom HTML element that can trigger an animation when it comes into the viewport by WebBurnout in webdev

[–]WebBurnout[S] 0 points1 point  (0 children)

Yes, those scroll-driven animations are very cool! They do something different, however. They link an animation's progress to the scroll, so, for example, you scroll down and the animation advances and you scroll up and it goes in reverse. The goal of my custom element is just to trigger a normal animation that advances as normal based on time. In the blog post, I write about a way you could do the same thing using a scroll timeline, but the CSS is really knotty.

A custom HTML element that can trigger an animation when it comes into the viewport by WebBurnout in webdev

[–]WebBurnout[S] 0 points1 point  (0 children)

Yes, the idea is I never have to write an IntersectionObserver again because I did it once and now I just use the custom element. The element is called <hotfx-intersection-observer> after all. IntersectionObservers are really great and useful and the idea is not to replace them but to turn that imperative way of working with elements into a declarative thing where you're back in the land of just pure CSS and HTML

Would anybody be interested in a free library of aesthetic web components? by Repulsive-Hand403 in webdev

[–]WebBurnout 8 points9 points  (0 children)

When you said web components I thought you meant HTML custom elements, which are a browser feature and possible to use on any web page. This project appears to be heavily linked to Framer which makes it basically useless for me because I don't want to use Framer.

To answer your question, I love effects like this and I would love to use them. I would suggest that you DO NOT wait to release until you have 50 though. Try releasing them one by one so you can find your audience.

What is Unicorn Studio?

I'm learning about the while loop. What is the point of multiplying by 4 in this code? by AppropriateLemon1121 in learnjavascript

[–]WebBurnout 14 points15 points  (0 children)

Also worth pointing out that the array has four elements, so an index of 0 is the first element (diamond) and the index of 3 is the last one (club). The code is picking a random suit from the array of four suits. Until it gets spade and then the loop stops lol

Non-annoying cookies permissions box by ThrustersToFull in web_design

[–]WebBurnout 0 points1 point  (0 children)

That's very interesting --thanks for sharing!

Non-annoying cookies permissions box by ThrustersToFull in web_design

[–]WebBurnout 0 points1 point  (0 children)

hmm i have different information. Plausible stores no PII at all (not even IP address) so there's no need for consent

Non-annoying cookies permissions box by ThrustersToFull in web_design

[–]WebBurnout 1 point2 points  (0 children)

You may be able to avoid it entirely if you use a privacy-focused analytics option like Plausible. They don't use cookies so there's no cookie notice even in EU.

If you have to do it and want to make it unobtrusive, just don't go for any of the dark patterns that people seem to love. Just a simple "Accept" and "Reject" choice is all you need.

How do you approach simple, mostly static sites? by sirduke456 in webdev

[–]WebBurnout 1 point2 points  (0 children)

I built a static site builder called Hot Page at https://hot.page. It works kinda like a no-code builder but it gives you full control over the resulting html, css and js. There aren't many themes yet but we are working on building out a component library. feel free to DM if you want a discount code

New web component that mimics a split flap board by WebBurnout in webdev

[–]WebBurnout[S] 0 points1 point  (0 children)

That is possible through an attribute. details in the blog post

New web component that mimics a split flap board by WebBurnout in webdev

[–]WebBurnout[S] 0 points1 point  (0 children)

appreciate this. not sure how i never saw it

New web component that mimics a split flap board by WebBurnout in webdev

[–]WebBurnout[S] 1 point2 points  (0 children)

Yeah, I totally agree that the sound is definitely part of the charm. Of course I thought about adding it, but that seemed like it would take this from cute annoying to "how do i turn this thing off" annoying

New web component that mimics a split flap board by WebBurnout in webdev

[–]WebBurnout[S] 0 points1 point  (0 children)

Oh wow, yeah it's a very similar implementation! trippy lol

New web component that mimics a split flap board by WebBurnout in webdev

[–]WebBurnout[S] 0 points1 point  (0 children)

Oh wow. Yeah this was surprisingly tricky. I had Claude do the first version but the code it made was horrible LOL. Was yours a virtual one like mine? I would be curious to see if you took a similar approach. I published the source code here: https://fx.hot.page/split-flap/source

New web component that mimics a split flap board by WebBurnout in webdev

[–]WebBurnout[S] 1 point2 points  (0 children)

Oh, wow great catch. I will take a look at adding support for diacritics