Untitled
unknown
plain_text
a year ago
5.9 kB
4
Indexable
Never
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Wallpaper</title> <style> *{ margin:0; padding: 0; box-sizing: border-box; font-family: sans-serif; } input{ display: none; } .container{ width: 100%; text-align: center; } h1{ font-weight: normal; font-size: 35px; position: relative; margin: 40px 0; } h1::before{ content: ''; position: absolute; width: 100px; height: 3px; background-color: crimson; bottom: -10px; left: 50%; transform: translate(-50%); animation: animate 4s linear infinite; } @keyframes animate { 0%{ width:100px; } 50%{ width: 200px; } 100%{ width: 100px; } } .top-content{ background-color: rgb(243, 243, 243); width: 90%; margin: 0 auto 20px auto; height: 60px; display: flex; align-items: center; border-radius: 5px; box-shadow: 3px 3px 5px lightgray; } h3{ height: 100%; background-color: rgb(221, 221, 221); line-height: 60px; padding: 0 50px; color: white; } label{ display: inline-block; height: 100%; margin: 0 20px; line-height: 60px; font-size: 18px; color: gray; cursor:pointer; transition: color .5s; } label:hover{ color:black; } .photogallery{ width: 90%; margin: auto; display: grid; grid-template-columns: repeat(4,1fr); grid-gap:20px; } .pic{ position: relative; height: 230px; border-radius: 10px; box-shadow: 3px 3px 5px lightgray; cursor: pointer; } .pic img{ width: 100%; height: 100%; border-radius: 10px; transition: .5s; } .pic::before{ content: "PHOTO GALLERY"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: white; font-size: 25px; font-weight: bold; width: 100%; margin-top: -100px; opacity: 0; transition: .3s; transition-delay: .2s; z-index: 1; } .pic:after{ content: ""; width:100%; height: 100%; bottom: 0; left: 0; border-radius: 10px; height: 0; transition: .3s; background-color: rgba(0, 0, 0, .4); } .pic:hover::after{ height: 100%; } .pic:hover::before{ margin-top: 0; opacity: 1; } #check1:checked ~ .container .photo-gallery .pic{ opacity: 1; transform: scale(1); position: relative; transition: .0s; } #check2:checked ~ .container .photo-gallery .family{ opacity: 1; transform: scale(1); position: relative; } #check2:checked ~ .container .photo-gallery .child, #check2:checked ~ .container .photo-gallery .place{ opacity: 0; transform: scale(0); position: absolute; transition: 0s; } #check3:checked ~ .container .photo-gallery .child{ opacity: 1; transform: scale(1); position: relative; } #check3:checked ~ .container .photo-gallery .family, #check3:checked ~ .container .photo-gallery .place{ opacity: 0; transform: scale(0); position: absolute; transition: 0s; } #check4:checked ~ .container .photo-gallery .place{ opacity: 1; transform: scale(1); position: relative; } #check4:checked ~ .container .photo-gallery .family, #check4:checked ~ .container .photo-gallery .child{ opacity: 0; transform: scale(0); position: absolute; transition: 0s; } </style> </head> <body> <input type="radio" name="photos" id="check1" checked> <input type="radio" name="photos" id="check2"> <input type="radio" name="photos" id="check3"> <input type="radio" name="photos" id="check4"> <div class="container"> <h1>Welcome To The Wallpaper Collection </h1> <div class="top-content"> <h3>Wallapaper Gallery</h3> <label for="check1" >All Wallapaper</label> <label for="check2" >Nature Wallpaper</label> <label for="check3" >Sports Wallapaper</label> <label for="check4" >Wildlife Wallapaper</label> </div> <div class="photos-gallery"> <div class="pic place"> <img src="wallpaper.jpg"> </div> <div class="pic family"> <img src="godwallpaper.jpg"> </div> <div class="pic child"> <img src="godwallpaper.jpg"> </div> <div class="pic place"> <img src="wallpaper.jpg"> </div> <div class="pic family"> <img src="godwallpaper.jpg"> </div> <div class="pic child"> <img src="godwallpaper.jpg"> </div> <div class="pic child"> <img src="godwallpaper.jpg"> </div> <div class="pic place"> <img src="wallpaper.jpg"> </div> <div class="pic family"> <img src="godwallpaper.jpg"> </div> <div class="pic child"> <img src="godwallpaper.jpg"> </div> <div class="pic child"> <img src="godwallpaper.jpg"> </div> <div class="pic place"> <img src="wallpaper.jpg"> </div> <div class="pic family"> <img src="godwallpaper.jpg"> </div> <div class="pic child"> <img src="godwallpaper.jpg"> </div> </div> </div> </body> </html>