Skip to content

Instantly share code, notes, and snippets.

View GoodyBoy301's full-sized avatar
🏠
Working from home

Goodness Urama GoodyBoy301

🏠
Working from home
View GitHub Profile
@GoodyBoy301
GoodyBoy301 / hover-for-fun.markdown
Created February 22, 2022 08:20
Hover for Fun! 🌈

Hover for Fun! 🌈

If you know me, you definitely know that I can't resist playing with CSS pens. An hour ago, I saw this post by @nazaneyn where she attempts to create a button with a rainbow border. Here is my take on that πŸ˜„

Although I like @t_afif's first solution, I would prefer a solution where we don't need any extra elements. Fortunately, conic-gradients and CSS masks can help.

I ended up using hue-rotate() to rotate the gradient πŸ˜₯


@GoodyBoy301
GoodyBoy301 / hand-written-svg-text-animation.markdown
Created February 25, 2022 15:41
Hand written SVG text animation

Hand written SVG text animation

A little hand written text animation made with anime.js. The masking is a little rough but you get the idea :P.

A Pen by Matthew Ellis on CodePen.

License.

@GoodyBoy301
GoodyBoy301 / hamburger-icon-animations.markdown
Created March 15, 2022 08:53
Hamburger Icon Animations
@GoodyBoy301
GoodyBoy301 / impossible-checkbox-v2.markdown
Created March 18, 2022 19:43
Impossible Checkbox v2 🐻

Impossible Checkbox v2 🐻

Revisiting one of my favorite pens to update the React side of it and add sound

A Pen by Jhey on CodePen.

License.

@GoodyBoy301
GoodyBoy301 / useWindowResize.js
Created May 29, 2022 18:42
A module that adds a Resize Event Listener to your React apps
export default function useWindowResize(setWindowSize) {
//accepts a setter function, setWindowsSize(useState()[1]),
addEventListener("resize", () => {
//adds a resize event
setWindowSize({ x: window?.innerWidth, y: window.innerHeight });
//done
//associated getter returns {x,y} : width and height of viewport
});
}
@GoodyBoy301
GoodyBoy301 / css-mouse-out-transition-effect.markdown
Created October 12, 2022 23:54
CSS mouse-out transition effect