Slicing images pure Css and more
How do I make an slicing images pure css and more?
Enjoy the power of Css: Up&down each middle image and paginated slider with lightbox. What is a slicing images pure css and more? How do you make a slicing images pure css and more? This script and codes were developed by Kseso on 15 October 2022, Saturday.
Slicing images pure Css and more - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>slicing images pure Css and more</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- inputs to display content-->
<input class='hide' type="radio" id="uno" name="tractor" />
<input class='hide' type="radio" id="dos" name="tractor" />
<input class='hide' type="radio" id="tres" name="tractor" />
<input class='hide' type="radio" id="cuatro" name="tractor" />
<input class='hide' type="radio" id="cierra" name="tractor" />
<!--inputs for moving images -->
<input class='hide' type="radio" id="uno1" name="tractor2" checked='checked' />
<input class='hide' type="radio" id="dos1" name="tractor2" />
<input class='hide' type="radio" id="tres1" name="tractor2" />
<input class='hide' type="radio" id="cuatro1" name="tractor2" />
<quote>Click the images & the ◉ ◉ || See the <a href='https://codepen.io/Kseso/full/GgpRym/'>version 2</a></quote>
<section> <nav> <label for='uno1' data-page='slide 1'></label> <label for='dos1' data-page='slide 2'></label> <label for='tres1' data-page='slide 3'></label> <label for='cuatro1' data-page='slide 4'></label> </nav> <label for='uno'></label> <label for='dos'></label> <label for='tres'></label> <label for='cuatro'></label>
</section>
<article class='uno'> <h1>Salamanca</h1> <p>El primer hábitat humano en el solar salmantino se ha fechado a comienzos del primer milenio antes de Cristo. Así lo atestiguan los restos cerámicos hallados en el «<i>cerro de San Vicente</i>» y que han sido adscritos a la cultura de Cogotas I del Bronce Final.</p>
</article>
<article class='dos'> <h1>Zamora</h1> <p>La ciudad fue fundada a inicios de la Edad del Bronce, siendo posteriormente ocupada durante la Edad de Hierro por el pueblo celta de los vacceos, que la denominaron Ocalam. El asentamiento inicial se produjo en la almendra delimitada por el Castillo y la <i>costanilla</i> de San Ildefonso, un emplazamiento estratégico al tratarse de una meseta rocosa defendida por el río Duero.</p>
</article>
<article class='tres'> <h1>León</h1> <p>La ciudad de León surge hacia 29 a. C. como campamento militar romano de la Legio VI Victrix, en la terraza fluvial entre los ríos Bernesga y Torío, cerca de la ciudad astur de Lancia, con motivo de las llamadas Guerras Cántabras. A finales del siglo I, a partir de 74, el campamento es ocupado por la Legio VII Gemina, fundada por Galba.</p>
</article>
<article class='cuatro'> <h1>Ávila</h1> <p>Algunos historiadores apuntan que la actual ciudad de Ávila fue una fundación ex-novo de los romanos, quienes le darían la denominación de <i>Abila, Obila, Abyla o Abela</i>. La ciudad romana estaba formada por el actual casco viejo, la zona rodeada hoy día por las murallas.</p>
</article>
<label for='cierra'></label>
<p class='aviso'>Link the <a href='https://escss.blogspot.com/2014/11/imagen-troceada-puro-Css.html'>POST</a>, show the PEN</p>
</body>
</html>
Slicing images pure Css and more - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Signika:300,600);
*, *:before, *:after { box-sizing: inherit;
}
* {margin:0;padding:0;border:0 none; position: relative;}
html { background: #444; height: 100%; color: #ddd; box-sizing: border-box; font-family: Signika, sans serif; font-weight: 300; overflow: hidden;
}
body { height: inherit;
}
a {color: tomato}
.hide {display: none;}
/*Section ratio 16:9 */
section { width: 80vw; height: 80vh; margin: auto; position: absolute; top:0;right:0;bottom:0;left:0;
}
section > label { position: absolute; top:0; left:0; width:80vw; height: 100%; cursor: pointer; -webkit-transition: 1s; transition: 1s; z-index: 1; background: no-repeat center; background-size: cover; visibility: hidden;
}
section > label:nth-of-type(1) { background-image:
url(//c4.staticflickr.com/4/3239/2941793035_067437afc4_z.jpg?zz=1)
}
section > label:nth-of-type(2) { background-image:
url(//www.buscarempleo.es/files/2014/06/5461340728_4f26fdf49e_b.jpg)
}
section > label:nth-of-type(3) { background-image:
url(//c4.staticflickr.com/8/7252/13178947615_6b35443c90_c.jpg)
}
section > label:nth-of-type(4) { background-image: url(//c1.staticflickr.com/9/8142/7456438656_39d7a984a9_b.jpg);
}
/*mostrar imágenes por 1/2*/
section > label:before,
section > label:after { content: ''; background: inherit; background-clip: content-box; position: absolute; width: 80vw; height: 80vh; visibility: visible; -webkit-transition: .5s linear; transition: .5s linear; -webkit-transform-origin: center; transform-origin: center;
}
section > label:before { clip: rect(0px, 37vw, 80vh, 0px); -webkit-animation: saleIzq 1s cubic-bezier(0.99,0.1,0.35,1.2) forwards; animation: saleIzq 1s cubic-bezier(0.99,0.1,0.35,1.2) forwards;
}
section > label:after { clip: rect(0px, 80vw, 80vh, 43vw); top: -100vh; -webkit-animation: saleDch 1s cubic-bezier(0.99,0.1,0.35,1.2) forwards; animation: saleDch 1s cubic-bezier(0.99,0.1,0.35,1.2) forwards;
}
/* selector de diapositiva y transiciones entre ellas */
nav { position: absolute; left: 0; bottom: -5vh; width: 100%; text-align: center;
}
nav label { background: rgba(0,0,0,0); display: inline-block; width: 1.3rem; height: 1.3rem; border: 2px solid #bbb; border-radius: 50%; cursor: pointer; -webkit-transition: .4s; transition: .4s; position: static;
}
nav label:before { content: attr(data-page); position: absolute; left: 0; top: 0; font-size: .9rem; color: #aaa; display: none;
}
#uno1:checked ~ section nav [for='uno1'],
#dos1:checked ~ section nav [for='dos1'],
#tres1:checked ~ section nav [for='tres1'],
#cuatro1:checked ~ section nav [for='cuatro1'] { border: .4rem solid tomato;
}
#uno1:checked ~ section nav [for='uno1']:before,
#dos1:checked ~ section nav [for='dos1']:before,
#tres1:checked ~ section nav [for='tres1']:before,
#cuatro1:checked ~ section nav [for='cuatro1']:before { display: block;
}
#uno1:checked ~ section > [for='uno']:before,
#dos1:checked ~ section > [for='dos']:before,
#tres1:checked ~ section > [for='tres']:before,
#cuatro1:checked ~ section > [for='cuatro']:before { -webkit-animation: entraIzq 1s cubic-bezier(0.99,0.1,0.35,1.2) forwards; animation: entraIzq 1s cubic-bezier(0.99,0.1,0.35,1.2) forwards;
}
#uno1:checked ~ section > [for='uno']:after,
#dos1:checked ~ section > [for='dos']:after,
#tres1:checked ~ section > [for='tres']:after,
#cuatro1:checked ~ section > [for='cuatro']:after { -webkit-animation: entraDch 1s cubic-bezier(0.99,0.1,0.35,1.2) forwards; animation: entraDch 1s cubic-bezier(0.99,0.1,0.35,1.2) forwards;
}
#uno1:checked ~ section > [for='uno']:after,
#dos1:checked ~ section > [for='dos']:after,
#tres1:checked ~ section > [for='tres']:after,
#cuatro1:checked ~ section > [for='cuatro']:after { top: 0;
}
@-webkit-keyframes saleIzq { 0% {top:0; display: block;} 98% {top:-100vh;} 99% {top:-100vh; display: none;} 100% {top: -100vh;}
}
@keyframes saleIzq { 0% {top:0; display: block;} 98% {top:-100vh;} 99% {top:-100vh; display: none;} 100% {top: -100vh;}
}
@-webkit-keyframes entraIzq { 0% {top: 100vh;display:none;} 1% {top:100vh;display: block;} 100% {top:0;}
}
@keyframes entraIzq { 0% {top: 100vh;display:none;} 1% {top:100vh;display: block;} 100% {top:0;}
}
@-webkit-keyframes saleDch { 0% {top:0; display: block;} 98% {top:100vh;} 99% {top:100vh; display: none;} 100% {top: 100vh;}
}
@keyframes saleDch { 0% {top:0; display: block;} 98% {top:100vh;} 99% {top:100vh; display: none;} 100% {top: 100vh;}
}
@-webkit-keyframes entraDch { 0% {top: -100vh;display:none;} 1% {top:-100vh;display: block;} 100% {top:0;}
}
@keyframes entraDch { 0% {top: -100vh;display:none;} 1% {top:-100vh;display: block;} 100% {top:0;}
}
/********* pasar a full */
#uno:checked ~ section [for='uno']:before,
#dos:checked ~ section [for='dos']:before,
#tres:checked ~ section [for='tres']:before,
#cuatro:checked ~ section [for='cuatro']:before { clip: rect(0px, 40vw, 80vh, 0px); -webkit-transform: scale(1.25); transform: scale(1.25);
}
#uno:checked ~ section [for='uno']:after,
#dos:checked ~ section [for='dos']:after,
#tres:checked ~ section [for='tres']:after,
#cuatro:checked ~ section [for='cuatro']:after { clip: rect(0px, 80vw, 80vh, 40vw); -webkit-transform: scale(1.25); transform: scale(1.25);
}
#cierra[name='tractor']:checked ~ section:after,
section:after { content: ''; background: rgba(0,0,85,.4); position: fixed; top:0; left:0; bottom:0; right:0; opacity: 0; -webkit-transition: .5s; transition: .5s; z-index: 5; -webkit-transform: scale(0); transform: scale(0);
}
[name="tractor"]:checked ~ section:after { -webkit-transform: scale(1); transform: scale(1); opacity: 1; -webkit-transform-origin: center; transform-origin: center;
}
[for='cierra'] { position: absolute; right: 1rem; top:0; z-index: 10; cursor: pointer;
}
#cierra:checked ~ [for='cierra']:before { content:''; font-size:0;
}
[name="tractor"]:checked ~[for='cierra']:before { content: '\2297'; font-size: 4rem; color: #fff;
}
[name="tractor"]:checked ~[for='cierra']:hover:before { color: tomato;
}
/* La información */
article { position: absolute; top: 0; left: 0; width: 100%; color: #fff; -webkit-transform: scalex(0); transform: scalex(0); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transition: .5s; transition: .5s; -webkit-transition-delay: 0; transition-delay: 0; padding: 5vh 5vh;
}
article h1 { font-weight: 600; font-size: 10vw; text-shadow: 5px 5px 0 #666;
}
article p { font-size: 1.5rem; padding: 5vh 5vw; line-height: 1.5;
}
#uno:checked ~ .uno,
#dos:checked ~ .dos,
#tres:checked ~ .tres,
#cuatro:checked ~ .cuatro { -webkit-transform: scalex(1); transform: scalex(1); z-index: 7; -webkit-transition-delay: .7s; transition-delay: .7s;
}
.aviso { position: fixed; bottom: 0; right: 0; background: orange; color: #fff; padding: .5rem; border-radius: 5px 0 0; box-shadow: 0 0 4px rgba(0,0,0,.4); z-index: 100;
}
.aviso a { text-decoration: none; color: #445;
}
Developer | Kseso |
Username | Kseso |
Uploaded | October 15, 2022 |
Rating | 3.5 |
Size | 4,344 Kb |
Views | 22,264 |
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 |
MagiCSSKroll | 4,647 Kb |
Auto Hexagonal CSS Grid Layout | 3,840 Kb |
Automanual-K gallery | 6,412 Kb |
Auto Honeycomb CSS Grid Layout | 7,164 Kb |
Picture with art direction by orientation | 1,604 Kb |
Slider with oblique border | 2,296 Kb |
Animated Border Menus pure Css | 4,278 Kb |
Charts pure Css | 6,674 Kb |
Gamma-Corrected Colorizing | 2,877 Kb |
DYNAMIC INSIDE BLUR PURE CSS | 4,925 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 |
Button fills | Zubfatal | 5,205 Kb |
Direction-icon | Alexandremasy | 3,323 Kb |
Tail rose iris lined | Kbrtrm | 1,846 Kb |
Flat UI Button | Honchoman | 2,289 Kb |
Ball bouncing loading animation | Adam2326 | 3,144 Kb |
Loading... | Adamjacob | 2,384 Kb |
A Bouncy Menu Toggle | Billyysea | 4,563 Kb |
Social buttons | Flacu | 2,022 Kb |
CSS3 Form Page Design | Rssatnam | 3,613 Kb |
CSS Link Zoom On Click | Bryce | 1,960 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!