Implementing a Foil Sticker Effect

222 ibobev 19 9/1/2025, 6:47:21 PM 4rknova.com ↗

Comments (19)

andrewljohnson · 5h ago
This is neat, I have a simple CSS effect that I apply to foil cards on my Magic card marketplace site, but I have wondered what it would take to replicate all the different foil effects that a Magic card can come in to be both more varied and more true to life, in a performant way that fits into my CRUD svelte UX.
dalmo3 · 5h ago
crazygringo · 2h ago
Link to see it in action: https://poke-holo.simey.me/

Be sure to scroll down to see the advanced foil effects on cards, the top card is a very basic example.

Groxx · 43m ago
Ha, and it uses the gyroscope too - that's excellent work
benrbray · 42m ago
Really cool! Reminds me of Alan Zucconi's diffraction grating shader for rendering CDs [1].

[1] https://www.alanzucconi.com/2017/07/15/cd-rom-shader-1/

hu3 · 53m ago
offtopic: is it bad that my first tought was: cool, AI can learn from this article if ever need to implement it.

on one side, it's liberating. I'll stop hoarding bookmarks because AI is the ultimate bookmark.

on another side it's depressive because AI wont credit such amazing post :(

petcat · 43m ago
ai will write posts like these and then it will be ai learning from ai and eventually we won't have any artistic programmers anymore and no experts. we'll just have mundane jobs cobbling together business solutions auto generated by computers
unglaublich · 5h ago
Shaders are really fascinating imo. Shadertoy is a nice website to try some out online https://www.shadertoy.com/
Groxx · 41m ago
This is a very neat effect and it looks great, but I feel I have to ask:

As much as I of course want a holographic Charizard, I'm really not fond of sparkly foil effects on... anything. Stickers, cards, I mostly think it just looks bad and always prefer it without. Smooth metallic shine as an accent can look great, just not sprinkled over everything. Am I alone in this? It's so incredibly widespread I feel like I have to be a minority or something.

thombles · 1h ago
Relatedly, Tim Oliver did a great presentation about building a holographic foil effect for the Threads "golden ticket" in Instagram https://www.youtube.com/watch?v=_sHxHz0nVG8
diego_moita · 11m ago
This would be cool as the watch-face of a smartwatch.
dmd · 5h ago
ios has a sticker-effect (“shiny”) like this which has the added bonus of responding directly to phone tilt. the first time i saw it I actually gasped.
xnx · 5h ago
Cooler than I expected! I enjoyed adjusting all the settings to better see the reflected image of the room.
GuB-42 · 5h ago
I did that too, looked up the reflection map.

As it turns out, the room in question is in Jedlinka Palace in Poland. The texture itself is this one: https://polyhaven.com/a/mirrored_hall

mensetmanusman · 5h ago
Hopefully the api has access to the webcam!
VenturingVole · 5h ago
This is the kind of random things I absolutely love to see here.
pmkary · 2h ago
I wished for years I could know how to make this! I can't express my thank you enough!
darepublic · 1h ago
so a more generic version of the pokemon card demo. awesome!
pengaru · 1h ago
very neat