Menu Hover Effect code: 1.index.html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Menu Hover Effect</title> <link rel="stylesheet" href="style.css"> </head> <body> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Services</a></li> <li><a href="#">Contact</a></li> </ul> </body> </html> 2.style.css: body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; } ul { margin: 300px 200px; padding: 0; […]
Архивы по месяцам: Март 2022
Creative Button Nice Effect code: 1.index.html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Creative Button</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="center"> <a href="#">Creative Button</a> <div class="bdr bdr1"></div> <div class="bdr bdr2"></div> <div class="bdr bdr3"></div> <div class="bdr bdr4"></div> </div> </body> </html> 2.style.css: body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; […]
Icon Hover Effect code: 1.index.html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Icon Hover Effect</title> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body> <ul> <li> <div class="icon"> <a href="#"> <i class="fa fa-map-marker" aria-hidden="true"></i> <div class="text">Address</div> </a> </div> </li> <li> <div class="icon"> <a href="#"> <i class="fa fa-envelope" aria-hidden="true"></i> <div class="text">Email</div> </a> </div> […]
Change Text Selection Color code: 1.index.html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Selection Color</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="container"> <h1>Lorem ipsum dolor sit amet consectetur adipisicing elit.</h1> <p> Earum aliquam repellat velit asperiores. Dolore sunt ipsum amet nam fugit ipsam vitae dicta asperiores optio. Doloremque corporis non […]
Creative Button code: 1.index.html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Creative Button</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <a href="#">Creative Button</a> </body> </html> 2.style.css: body { margin: 0; padding: 0; } a { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: Arial, Helvetica, sans-serif; text-transform: uppercase; text-decoration: none; […]
Zoom Image on Scroll code: 1.index.html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Zoom Image on Scroll</title> <link rel="stylesheet" type="text/css" href="style.css"> <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script> <script type="text/javascript"> $(window).scroll(function(){ var scroll = $(window).scrollTop(); $(".zoom img").css({ width: (100 + scroll/5) + "%" }) }) </script> </head> <body> <section class="zoom"> <img src="image.jpg"> </section> <section></section> […]
Button Layer Hover Effect code: 1.index.html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Button Effect</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <a href="#" class="btn">Button</a> </body> </html> 2.style.css: body { margin: 0; padding: 0; background: lawngreen; } .btn { font-family: Arial, Helvetica, sans-serif; text-transform: uppercase; font-size: 30px; width: 240px; height: 60px; border-radius: […]
Paper Cut Letter code: 1.index.html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Paper cut letter</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="container"> <span data-title="A">A</span> <span data-title="W">W</span> <span data-title="E">E</span> <span data-title="S">S</span> <span data-title="O">O</span> <span data-title="M">M</span> <span data-title="E">E</span> </div> </body> </html> 2.style.css: body { margin: 0; padding: 0; } .container { text-align: […]
Floating Text Loading Animation code: 1.index.html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Loading Animation</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <ul> <li>L</li> <li>O</li> <li>A</li> <li>D</li> <li>I</li> <li>N</li> <li>G</li> </ul> </body> </html> 2.style.css: body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; } ul { position: absolute; top: 50%; left: […]