ๆญฃๅœจๅŠ ่ฝฝ่ง†้ข‘...

่ง†้ข‘ๅŠ ่ฝฝๅคฑ่ดฅ

VFX-JS supports HTML-in-Canvas now. You can turn HTML element into a WebGL texture. It automatically detects the browser and fallback to the old SVG foreignObject workaround. So it works on Chrome, Firefox, and Safari, of course! #WebGL #VFXJS #Codepen

52,893 ๆฌก่ง‚็œ‹ โ€ข 7 ไธชๆœˆๅ‰ โ€ขvia X (Twitter)

8 ๆก่ฏ„่ฎบ

๐˜ผ๐™ˆ๐˜ผ๐™‚๐™„ ็š„ๅคดๅƒ
๐˜ผ๐™ˆ๐˜ผ๐™‚๐™„7 ไธชๆœˆๅ‰

Code:

Nick Daniel ็š„ๅคดๅƒ
Nick Daniel7 ไธชๆœˆๅ‰

Wow thatโ€™s impressive. Feels like we should link to this in the demos of (oss on GitHub and over 1k daily visitors)

Kuwazy ็š„ๅคดๅƒ
Kuwazy7 ไธชๆœˆๅ‰

It's so great!

Sync Kun ็š„ๅคดๅƒ
Sync Kun7 ไธชๆœˆๅ‰

Interesting

Rudresh H R ็š„ๅคดๅƒ
Rudresh H R7 ไธชๆœˆๅ‰

it feels like a new custom cursor but much much beautiful and interactive๐Ÿ˜๐Ÿ˜

Red Sun Prophecy ็š„ๅคดๅƒ
Red Sun Prophecy7 ไธชๆœˆๅ‰

Nice user unfriendly effect.

แดŠแดแด€ษดษชแด‡ สŸแด‡แดแด‡ส€แด„ษชแด‡ส€ ็š„ๅคดๅƒ
แดŠแดแด€ษดษชแด‡ สŸแด‡แดแด‡ส€แด„ษชแด‡ส€6 ไธชๆœˆๅ‰

so good

๐˜ผ๐™ˆ๐˜ผ๐™‚๐™„ ็š„ๅคดๅƒ
๐˜ผ๐™ˆ๐˜ผ๐™‚๐™„6 ไธชๆœˆๅ‰

thx๐Ÿ™Œ

็›ธๅ…ณ่ง†้ข‘

007/100 Buttons. This button was way more complex than I first thought. I love the page transition on the Truus site that Dennis Snellenberg and Jordan Gilroy worked on. So I wanted to use that drawing SVG Path idea somehow and fit it into a button. In best case with a mask effect. The idea was to have an SVG path in the background that fills the button. At the same time, this path should also be used as a mask to reveal the differently colored text. The SVG should also be replaceable and work with other SVGs. For the path animation, I can use the DrawSVGPlugin from GSAP. Sounds like a solid plan. I built the button so far, and it worked great in Chrome and Firefox. In Safari, nope. I used an SVG mask that I referenced through CSS. But Safari canโ€™t handle that properly when the path inside the mask is animated, so the animation lags. There was no simple solution for that. At least I didnโ€™t find something. So I had to rebuild the button in another way. What I found was that the SVG mask animation works in Safari when the mask is placed on the desired element inside the SVG. Thatโ€™s where foreignObject comes in, it allows you to use normal HTML elements inside an SVG. Using that, I rebuilt the hover text inside the SVG. I then referenced the mask on the foreignObject with a bit of JavaScript. And it worked! The buttonโ€™s structure looks more complicated than I wanted it to be, but that happens quite often when you need to make something work across different browsers ๐Ÿ˜ƒ Crafting 100 Buttons with Osmo โณ Total time: 96h

Eduard Bodak

67,987 ๆฌก่ง‚็œ‹ โ€ข 6 ไธชๆœˆๅ‰