Pure CSS Slide Panel
How do I make an pure css slide panel?
What is a pure css slide panel? How do you make a pure css slide panel? This script and codes were developed by Keisuke Takahashi on 15 November 2022, Tuesday.
Pure CSS Slide Panel - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pure CSS Slide Panel</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Pure CSS Slide Panel</h1>
<div class="slide"> <input id="go1" type="radio" name="select" class="input" checked> <input id="go2" type="radio" name="select" class="input"> <input id="go3" type="radio" name="select" class="input"> <input id="go4" type="radio" name="select" class="input"> <figure class="photos"> <figure class="photo" id="p1"> <img alt="" src="http://img02.shop-pro.jp/PA01128/299/product/59712596.png" /> <label for="go2" class="btn btn-inside next">›</label> </figure> <figure class="photo" id="p2"> <img alt="" src="http://img02.shop-pro.jp/PA01128/299/product/59712596_o1.png" /> <label for="go1" class="btn btn-inside prev">‹</label> <label for="go3" class="btn btn-inside next">›</label> </figure> <figure class="photo" id="p3"> <img alt="" src="http://img02.shop-pro.jp/PA01128/299/product/59712596_o2.png" /> <label for="go2" class="btn btn-inside prev">‹</label> <label for="go4" class="btn btn-inside next">›</label> </figure> <figure class="photo" id="p4"> <img alt="" src="http://img02.shop-pro.jp/PA01128/299/product/59712596_o3.png" /> <label for="go3" class="btn btn-inside prev">‹</label> <label for="go1" class="btn btn-inside next">«</label> </figure> </figure> <label for="go1" class="btn btn-outside go1">1</label> <label for="go2" class="btn btn-outside go2">2</label> <label for="go3" class="btn btn-outside go3">3</label> <label for="go4" class="btn btn-outside go4">4</label>
</div> <script src="js/index.js"></script>
</body>
</html>
Pure CSS Slide Panel - Script Codes CSS Codes
html,body,figure { margin: 0; padding: 0;
}
body,
.btn { background:#527E52;/* change color as you wish */
}
h1 { color:#999; color:rgba(0,0,0,0.5); font-size:2.5em; text-align: center;
}
img { display: block; width: 100%;
}
.slide { overflow:hidden; width: 440px; margin:1em auto; padding: 1em 0; position:relative; text-align: center; box-shadow: inset 0 0 5em 0 #000;
}
.photos { width: 1760px; height: 400px; position: relative;
}
.photo { float:left; width: 400px; position: relative; padding: 0 20px;
}
.input { position: absolute; clip:rect(0,0,0,0);
}
.btn { display: inline-block; padding:0.3em; cursor: pointer; text-align: center;
}
.btn:hover { color:#fff; text-shadow:0 0 0.1em #eee;
}
.btn-inside { position: absolute; box-shadow: 0 0 0.2em #000; border-radius: 50%; font-size:2em; font-family: arial; height: 1em; width: 1em; line-height: 0.9; top:180px;
}
.btn-outside { padding:0 1em; margin-top:1em;
}
.next { right:-0.6em;
}
.prev { left:-0.6em;
}
.btn-inside { display:none;
}
#go1:checked ~ .photos #p1 .btn-inside,
#go2:checked ~ .photos #p2 .btn-inside,
#go3:checked ~ .photos #p3 .btn-inside,
#go4:checked ~ .photos #p4 .btn-inside { display:inline-block;
}
#go1:checked ~ .go1,
#go2:checked ~ .go2,
#go3:checked ~ .go3,
#go4:checked ~ .go4 { box-shadow: inset 0 0 1em rgba(255,255,255,0.5);
}
/* animations */
.btn,
.photos { -webkit-transition:0.4s; -moz-transition:0.4s; transition:0.4s;
}
#go1:checked ~ .photos { -webkit-transform: translate3d(0,0,0); -moz-transform: translate3d(0,0,0); transform: translate3d(0,0,0);
}
#go2:checked ~ .photos { -webkit-transform: translate3d(-440px,0,0); -moz-transform: translate3d(-440px,0,0); transform: translate3d(-440px,0,0);
}
#go3:checked ~ .photos { -webkit-transform: translate3d(-880px,0,0); -moz-transform: translate3d(-880px,0,0); transform: translate3d(-880px,0,0);
}
#go4:checked ~ .photos { -webkit-transform: translate3d(-1320px,0,0); -moz-transform: translate3d(-1320px,0,0); transform: translate3d(-1320px,0,0);
}
Pure CSS Slide Panel - Script Codes JS Codes
// photo by http://shop.st-neverland.com/
Developer | Keisuke Takahashi |
Username | ksksoft |
Uploaded | November 15, 2022 |
Rating | 3.5 |
Size | 2,463 Kb |
Views | 30,360 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Ladybird Fly Away | 2,629 Kb |
Pure CSS candle light animation by One element | 2,193 Kb |
Pure css Dialogue UI | 2,457 Kb |
One Element Conic Gradient | 2,248 Kb |
Pure css thumbnails hover 2 | 1,940 Kb |
One div DORAEMON | 2,448 Kb |
TEMARI Sphere | 2,369 Kb |
SVG Concentrated Linework | 1,806 Kb |
Pure css Parallax header | 2,143 Kb |
Box-shadow hexagon mask | 2,196 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Ball Physics | Getsetbro | 3,149 Kb |
Compare resources on mobile sites | Gyusza | 3,226 Kb |
Segments mouse following | Nosir | 2,909 Kb |
Awesome | Samarthpd | 2,901 Kb |
Awesome textarea | Ayoungh | 1,977 Kb |
FreeCodeCamp - Simon Game | Ivhed | 8,481 Kb |
CSS Donut Charts | Seanstopnik | 2,908 Kb |
The CodePen Logo | Kindofone | 4,259 Kb |
A Pen by Bryan | Brydave | 2,286 Kb |
About Mazano | Kiti | 2,585 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!