Pure css thumbnails hover 2

Size
1,940 Kb
Views
18,216

How do I make an pure css thumbnails hover 2?

This is a sample of lesson.. What is a pure css thumbnails hover 2? How do you make a pure css thumbnails hover 2? This script and codes were developed by Keisuke Takahashi on 19 November 2022, Saturday.

Pure css thumbnails hover 2 Previews

Pure css thumbnails hover 2 - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pure css thumbnails hover 2</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Pure css thumbnails hover</h1>
<ul> <li><div>Default</div></li> <li><span>1</span><div>First</div></li> <li><span>2</span><div>Second</div></li> <li><span>3</span><div>Third</div></li> <li><span>4</span><div>4th</div></li> <li><span>5</span><div>5th</div></li> <li><span>6</span><div>6th</div></li>
</ul>
</body>
</html>

Pure css thumbnails hover 2 - Script Codes CSS Codes

body {	background:#888;
}
h1 {	text-align:center;
}
body,ul,li {	margin:0;	paddin:0;
}
ul {	width:300px;	height:300px;	margin:1em auto; padding-left:310px;	text-align:center;	list-style:none;	position:relative; background:#eee;
}
li { float:left;	width:90px; margin:10px 10px 10px 0;	height:80px;
}
li div {	left:0;	top:0;	position:absolute;	width:300px;	height:300px;	line-height:300px;	font-size:2em;	opacity:0;	transition:0.4s;
}
li:nth-child(1) { width:0; margin: 0;
}
li:nth-child(1) div {opacity:1;}
li:nth-child(odd) div { background:orange;}
li:nth-child(even) div { background:pink;}
li span {	display:block;	cursor:pointer;	width:100%;	height:100%;	line-height:80px;	opacity:0.5;	-webkit-transition:0.4s;	-moz-transition:0.4s;	transition:0.4s;
}
li:nth-child(odd) span { background:orange;}
li:nth-child(even) span { background:pink;}
li span:hover {	opacity:1;
}
li span:hover + div {	opacity:1;	z-index:100;
}
@media screen and (max-width:600px) { ul { padding-left: 0; width:90%; height:auto; margin:0 auto 1em; } li:nth-child(n) { width: 100%; margin:0 auto 1em; height:auto; } li div { position: static; margin:0; width:100%; height:auto; opacity:1; line-height:2em; } li span { display:none; }
}
Pure css thumbnails hover 2 - Script Codes
Pure css thumbnails hover 2 - Script Codes
Home Page Home
Developer Keisuke Takahashi
Username ksksoft
Uploaded November 19, 2022
Rating 3
Size 1,940 Kb
Views 18,216
Do you need developer help for Pure css thumbnails hover 2?

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!

Keisuke Takahashi (ksksoft) Script Codes
Create amazing SEO content with AI!

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!