Skip to content

Instantly share code, notes, and snippets.

@hatemhosny
hatemhosny / 3d-css-plane-tap-to-toggle-mouse-move-parallax.markdown
Created April 10, 2021 23:37
3D CSS Plane 😎 (Tap to Toggle + Mouse Move Parallax)
@hatemhosny
hatemhosny / index.pug
Created March 3, 2021 08:15
Pure CSS drawers using <details> & <summary> 🔨🔩🤓 #CodePenChallenge
mixin drawer(pos, text)
.chest-drawer(class=`chest-drawer--${pos}`)
details
summary
.chest-drawer__structure
.chest-drawer__panel.chest-drawer__panel--left
.chest-drawer__panel.chest-drawer__panel--right
.chest-drawer__panel.chest-drawer__panel--bottom
.chest-drawer__panel.chest-drawer__panel--back= text
@hatemhosny
hatemhosny / playground.ts
Last active February 11, 2021 20:50
Compiled Code
// TypeScript's inference can get you very far, but there
// are lots of extra ways to provide a richer way to document
// the shape of your functions.
// A good first place is to look at optional params, which
// is a way of letting others know you can skip params.
let i = 0;
const incrementIndex = (value?: number) => {
i += value === undefined ? 1 : value;
@hatemhosny
hatemhosny / css-card-flip-on-hover.markdown
Created January 25, 2021 06:31
CSS Card Flip On Hover
@hatemhosny
hatemhosny / index.html
Created January 23, 2021 10:05
Scrolling menu
<!-- HORIZONTAL -->
<nav id="hmenu">
<section>
<div class="active"><a>First</a></div>
<div><a>Second</a></div>
<div><a>One more</a></div>
<div><a>XBox</a></div>
<div><a>Menu</a></div>
<div><a>Last</a></div>
</section>
@hatemhosny
hatemhosny / full-page-parallax-scroll-effect.markdown
Created January 17, 2021 11:42
Full Page Parallax Scroll Effect