List/Grid Views for Hover or Touch
How do I make an list/grid views for hover or touch?
Read more: http://24ways.org/2013/the-responsive-hover-paradigm/Giving our users an option to see hidden content outside of a hover with a view switcher. . What is a list/grid views for hover or touch? How do you make a list/grid views for hover or touch? This script and codes were developed by Maheshc on 28 November 2022, Monday.
List/Grid Views for Hover or Touch - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>List/Grid Views for Hover or Touch</title> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="product-wrap" class="grid"> <div class="switcher"> <a href="#" class="list" title="Touch list"><i class="fa fa-list"> Touch</i></a> <a href="#" class="grid" title="Hover Grid"><i class="fa fa-th-large"> Hover</i></i></a> </div> <div class="prod_hold"> <a class="wrap_link" href="#0"> <span class="image"> <img src="http://deltacycle.com/image/cache/data/RS1010-180x180.jpg" alt="Portable Quickstand" /> </span> </a> <span class="price"> $29.99 </span> <div class="info"> <h3> Portable Quickstand </h3> <button> Add to Cart </button> </div> </div> <div class="prod_hold"> <a class="wrap_link" href="#0"> <span class="image"> <img src="http://deltacycle.com/image/cache/data/rs4007c-2013redhook-180x180.jpg" alt="" /> </span> </a> <span class="price"> $19.99 </span> <div class="info"> <h3> Bike Storage Hook & Tray </h3> <button> Add to Cart </button> </div> </div> </div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
List/Grid Views for Hover or Touch - Script Codes CSS Codes
* { box-sizing: border-box;
}
body { padding: 40px;
}
.switcher { margin-bottom: 3em;
}
.switcher a { background: #666; text-decoration: none; color: #fff; padding: 20px; margin-right: 10px;
}
.list .prod_hold { min-height: 200px; width: 400px; border: 1px solid black; margin-bottom: 1em; padding: 1em;
}
.list .prod_hold img { float: left;
}
.list .wrap_link { display: block;
}
.list .price { display: block; margin-top: 1em;
}
.grid .prod_hold { position: relative; width: 182px; border: 1px solid #ccc; float: left; margin: 0 20px 20px 0;
}
.grid .prod_hold .price { position: absolute; z-index: 1; top: 0; right: 0; background: red; color: white; padding: 5px;
}
.grid .prod_hold .image { position: relative; z-index: 1;
}
.grid .prod_hold .info { position: absolute; top: 0; left: 0; right: 0; max-height: 0; padding: 0 10px 20px 10px; overflow: hidden; background: black; color: white; -moz-transition: 0.2s; -o-transition: 0.2s; -webkit-transition: 0.2s; transition: 0.2s;
}
.grid .prod_hold .info h3 { border-bottom: 1px solid #666; padding: 0 0 5px 0;
}
.grid .prod_hold:hover .info, .grid .prod_hold:focus .info, .grid .prod_hold:active .info { right: -10px; top: -10px; left: -10px; padding-top: 180px; max-height: 350px;
}
List/Grid Views for Hover or Touch - Script Codes JS Codes
$(document).on('click', 'div.switcher a', function(e) { var wrapClass = $(this).attr('class'); $('#product-wrap').removeClass().addClass(wrapClass); e.preventDefault();
});
Developer | Maheshc |
Username | maheshc |
Uploaded | November 28, 2022 |
Rating | 3 |
Size | 3,288 Kb |
Views | 4,048 |
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 |
CSS 3D Solar System | 251,376 Kb |
A Pen by maheshc | 2,586 Kb |
Sequence.js - Sliding Horizontal Parallax | 4,537 Kb |
Simplest Parallax effect ever. | 1,900 Kb |
GTA 5 CSS3 Parallax | 2,754 Kb |
Animated scroll-dependant menu using scrollMonitor | 2,748 Kb |
Parallax scrolling background | 3,398 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 |
Emberjs Bootstrap Modal Carousel | Somethingkindawierd | 4,233 Kb |
Login-ng-modal | Heedoo | 3,566 Kb |
Animate a paper plane along an SVG path, looking ahead | PotatoDie | 3,734 Kb |
Header Line Issue | Charlie-volpe | 1,768 Kb |
Vue.js Lazy Loading | Kjbrum | 3,620 Kb |
Matrix | Stathisnikolaidis | 1,922 Kb |
Parallax-ish Sliding Content | Jdsteinbach | 2,748 Kb |
Blog demo to use given styling | Andygirl | 2,412 Kb |
Simple personal profile | Miroot | 2,856 Kb |
Avero - Collectieve LVVP Arbeidsongeschiktheidsverzekering - CSS - som | Frederiquebonink | 12,554 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!