Posts

Clock

Image
<!DOCTYPE html> <html> <head> <title>Clock Html</title> </head> <body> <div class="clock"> <div class="hour"> <div class="hr" id="hr"></div> </div> <div class="min"> <div class="mn" id="mn"></div> </div> <div class="sec"> <div class="sc" id="sc"></div> </div> </div> <script type="text/javascript"> const deg = 6; const hr = document.querySelector("#hr"); const mn = document.querySelector("#mn"); const sc = document.querySelector("#sc"); setInterval(() => { let day = new Date(); let hh = day.getHours() * 30; let mm = day.getMinutes() * deg; let ss = day.getSeconds() * deg; hr.style.transform = `rotateZ(${hh+(mm/12)}deg)`; mn.style.tr...

Hover Quick Card

Image
<!DOCTYPE html> <html> <head> <title>Hover Quick Card</title> </head> <body> <div class="container"> <div class="card"> <div><h2>Design</h2> <p> It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</p> <a href="#">Read More</a> </div> </div> <div class="card"> <div><h2>Code</h2> <p> It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</p> <a href="#">Read More</a> </div> </div> <div class="card"...

Input Placeholder

Image
<!DOCTYPE html> <html> <head> <title>Input Placeholder</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="container"> <h2>How to Create Custom Input Filed</h2> <form> <div class="input-field"> <input type="text" name="" required=""> <label>Please Enter Your Full Name</label> <span></span> </div> <input type="submit" value="Show Result" name="" class="btn"> </form> </div> </body> </html> <style type="text/css"> *{margin: 0px; padding: 0px; font-family: arial; box-sizing: border-box; } body{ display: flex; justify-content: center; align-items: center; background-color: #111; min-height: 100vh;} .c...

Full Screen Slider

Image
<!DOCTYPE html> <html> <head> <title>Full Screen Slider</title> </head> <body> <section> <div class="slide"> <div class="content"> <h2>Slider One</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p> </div> </div> <div class="slide"> <div class="content"> <h2>Slider Two</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p> </div> </div> <div class="slide"> <div class="content"> <h2>Slider Three</h2> <p>Lorem ipsum dolor sit am...

404 Page Error

Image
<!DOCTYPE html> <html> <head> <title>404 Page</title> </head> <body> <div id="container"> <div class="content"> <h2>404</h2> <h4>Opps! Page Not Found</h4> <p>The Page You were Looking for does'nt exist. You May Have Mistyped The Address or The Page My Have Moved.</p> <a href="#">Back to Home</a> </div> </div> </body> </html> <style type="text/css"> *{ margin: 0px; padding: 0px; box-sizing: border-box; font-family: arial; } body{ background: linear-gradient(45deg, #8500ff, #5acaff); height: 100vh; } #container{position: absolute; border-radius: 15px; top: 10%; left:10%; right: 10%; bottom: 10%; display: flex; justify-content: center; align-items: center; background: url("p404.png") #151729; box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.5);} ...

Wave Text

Image
<!DOCTYPE html> <html> <head> <title>Wave Text</title> </head> <body> <div class="wavy"> <span style="--i:1;">L</span> <span style="--i:2;">o</span> <span style="--i:3;">a</span> <span style="--i:4;">d</span> <span style="--i:5;">i</span> <span style="--i:6;">n</span> <span style="--i:7;">g</span> <span style="--i:8;">.</span> <span style="--i:9;">.</span> <span style="--i:10;">.</span> </div> </body> </html> <style type="text/css"> *{ margin: 0px; padding: 0px; font-family: consolas; } body{ display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #000; } .wavy{ pos...

Light And Dark Mode

Image
<!DOCTYPE html> <html> <head> <title> Light Mode </title> </head> <body> <input type =" checkbox " name =""> <section> <h2> Pure CSS Dark / Light Mode Tricks </h2> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p> <img src =" img.jpg "> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco la...