Skip to content

Instantly share code, notes, and snippets.

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

Mahdi codepediair

🏠
Working from home
View GitHub Profile
@codepediair
codepediair / index.html
Created June 30, 2024 06:43
Create a game with three.js
<div id="counter">0</div>
<div id="controlls">
<div>
<button id="forward">
<svg width="30" height="30" viewBox="0 0 10 10">
<g transform="rotate(0, 5,5)">
<path d="M5,4 L7,6 L3,6 L5,4" />
</g>
</svg>
@codepediair
codepediair / index.html
Last active June 23, 2024 07:36
Music Player With Tailwind and JavaScript
<body class="">
<div class="absolute right-4 top-4">
<div id="dark-mode-toggle" class="cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 stroke-white hidden dark:block" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 stroke-[#0A1122] block dark:hidden" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" />
</svg>
</div>
<html>
<head>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<h3>
Play KeyBoard by pressing (A S D F G H J K L ;)<br> and (W E T Y U O P)
</h3>
<div class="floor"></div>
@codepediair
codepediair / index.html
Created May 16, 2024 13:35
Like Button Microinteraction
<div class="wrapper">
<div class="button-container">
<div class="button">
<span class="content">
<i class="icon fa fa-heart" aria-hidden="true"></i>
<i class="icon far fa-heart" aria-hidden="true"></i>
<span class="text like">Like<span class="text d">d</span></span>
<span class="text number">29</span>
</span>
a(href='#').switcher
.screen.glitch
.clock.is-off
span(data-time='').time
.figure
.figure-mask
@codepediair
codepediair / index.html
Created April 16, 2024 15:59
animation Menu
<ul>
<li style="--clr:#5E81AC">
<a href="#" data-text="&nbsp;Home">&nbsp;Home&nbsp;</a>
</li>
<li style="--clr:#BF616A">
<a href="#" data-text="&nbsp;About">&nbsp;About&nbsp;</a>
</li>
<li style="--clr:#EBCB8B">
<a href="#" data-text="&nbsp;Services">&nbsp;Services&nbsp;</a>
</li>
@codepediair
codepediair / index.html
Created April 6, 2024 18:18
front end developer in love
<div class="wrapper">
<h1 data-splitting class="line1">Take care of yourselves out there</h1>
<h2 data-splitting class="line2">..........................................................................</h2>
</div>
@codepediair
codepediair / index.pug
Created March 30, 2024 15:49
web Site Lodaing
.content
- for(i=0; i<2; i++)
.bars
- for(b=0; b<7; b++)
.bar
@codepediair
codepediair / index.html
Created February 12, 2024 15:25
vertical menu
<nav class="navbar">
<ul class="navbar__menu">
<li class="navbar__item">
<a href="#" class="navbar__link"><i data-feather="home"></i><span>Home</span></a>
</li>
<li class="navbar__item">
<a href="#" class="navbar__link"><i data-feather="message-square"></i><span>Messages</span></a>
</li>
<li class="navbar__item">
<a href="#" class="navbar__link"><i data-feather="users"></i><span>Customers</span></a>
@codepediair
codepediair / index.html
Created January 14, 2024 13:31
transitiona animation
<!-- Let's have some comets flyings around :) -->
<div class="comet-rain">
<!-- symbol definition -->
<svg aria-hidden="true" id="svg-comet" class="svg-defs" data-name="comet" viewBox="0 0 195 173.05" width="195" height="173.05">
<symbol id="comet">
<path d="M192.39.66c-33.66,31.46-93.3,81.16-129,108.88L3.42,156c-5,3.89-4.29,11.28.74,15.4s12.84-.83,13.1-1.07C51.09,138.62,82.6,104.72,116.64,73c8.89-8.29,66.23-59.5,77.47-70.13C196.17,1,194.24-1.08,192.39.66Z" />
</symbol>
</svg>
<!-- gradient definition for the comets -->