r/webdev • • Jun 25 '22

Showoff Saturday Wrote a tiny NPM package for interpolating between multiple SVG paths

5.7k Upvotes

94 comments sorted by

View all comments

Show parent comments

61

u/pookage tired front-end veteren 🙃 Jun 25 '22

Ah yeah - I came here to see if you'd solved this problem, too, haha. I had this one a few years back where I was wanting to <animate> an SVG with a different number of points in its path for a nice wobble effect with no joy - I ended up doing what you did here and moving existing points around.

Still - great work, regardless!

10

u/Iklowto Jun 25 '22

That’s a super cool effect actually, nice!

7

u/d_k97 Jun 25 '22

Damn looks awesome

0

u/[deleted] Jun 25 '22

[deleted]

4

u/pookage tired front-end veteren 🙃 Jun 25 '22

haha, faaanx but it's wildly out of date now 🤦‍♀️ always the way with portfolio sites, hey...

3

u/[deleted] Jun 25 '22

that looks really cool, custom and professional! Is the wobble on the curvy frame for the ladies portrait? I'm on my phone so maybe it isn't as prominent. Again, looks amazing!

2

u/pookage tired front-end veteren 🙃 Jun 25 '22

Yeah, exactly - there's a background-image that's using clip-path() with an animated SVG to give it a subtle portal-like appearance. Didn't need to be much - just had to be a little bit unsettling given the subject matter.

2

u/Pamander Jun 25 '22

I love that movie! Beautiful work in the demo!

2

u/HorrorMakesUsHappy Jun 26 '22

lol what are the odds.

I cohost a podcast interviewing people in the horror biz, and came to this sub thinking of asking for help testing an unrelated website I've created, happened to click here and end up checking out your link without having any idea what I was about to find lol

1

u/pookage tired front-end veteren 🙃 Jun 26 '22

✨it's all connected ✨

2

u/NULL_42 Jun 25 '22

Wow! That’s great work. You’re super talented

4

u/pookage tired front-end veteren 🙃 Jun 25 '22

haha, cheeeers - honestly, it's 90% about working with a talented designer and treating the design with respect. This one was with the ineffable Flo Pollet and was a whiiile back now...