CSS3 Selectables with information rollover

Developer
Size
9,565 Kb
Views
44,528

How do I make an css3 selectables with information rollover?

HTML5 "flip cards" that allow you to make a more informed selection by displaying detailed information about the item on roll over - just when you need it. This allows for less cluttered user interface as once you have learnt what something is, you probably don't need to see it all the time. Even better you can specify some elements to be "required", hence their state is not changeable (the yellow ones). The white and blue ones can be selected/unselected as you desire. Almost everything is pure CSS. JavaScript only used to persist state, add event handlers for a click, and to count selected elements. Gracefully degrades in browsers that do not support CSS 3D. Best viewed in Chrome. Enjoy!. What is a css3 selectables with information rollover? How do you make a css3 selectables with information rollover? This script and codes were developed by Jason Mayes on 07 July 2022, Thursday.

CSS3 Selectables with information rollover Previews

CSS3 Selectables with information rollover - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Selectables with information rollover</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!DOCTYPE html>
<html>	<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="author" content="Jason Mayes" /> <title>Selectables by Jason Mayes</title> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,300&subset=latin,latin-ext' rel='stylesheet' type='text/css'>	</head>	<body> <div class="cardContainer"> <h1>What do you need?</h1> <p class="large">Click on the fields you require to make your selection.</p> <a id="close" href="#"></a> <ul> <li class="flip-container"> <div class="flipper required"> <div class="front"> <h2>ID</h2> </div> <div class="back"> <h2>Required field</h2> <p>The ID allows you to uniquely idenitfy a row. It must be present.</p> </div> </div> </li> <li class="flip-container"> <div class="flipper required"> <div class="front"> <h2>Meow kittens</h2> </div> <div class="back"> <h2>Required field</h2> <p>Hiss sleep in the sink lick hairball, jump on the table litter box zzz.</p> </div> </div> </li> <li class="flip-container"> <div class="flipper default"> <div class="front"> <h2>Mousie sleep</h2> </div> <div class="back"> <h2>click to select</h2> <p>Bat feed me lay down in your way meow, run stretching sleep on your keyboard.</p> </div> </div> </li> <li class="flip-container"> <div class="flipper default"> <div class="front"> <h2>Jump on table</h2> </div> <div class="back"> <h2>click to select</h2> <p>I don't like that food litter box I don't like that food.</p> </div> </div> </li> <li class="flip-container"> <div class="flipper selected"> <div class="front"> <h2>Lay down</h2> </div> <div class="back"> <h2>click to select</h2> <p>Give me fish sleep on your keyboard. Eat the grass.</p> </div> </div> </li> <li class="flip-container"> <div class="flipper default"> <div class="front"> <h2>Stuck in a tree</h2> </div> <div class="back"> <h2>click to select</h2> <p>Hairball knock over the lamp hiss, jump on the table zzz.</p> </div> </div> </li> <li class="flip-container"> <div class="flipper default"> <div class="front"> <h2>Catnip</h2> </div> <div class="back"> <h2>click to select</h2> <p>Knock over the lamp meow, scratched judging you attack judging you sleep.</p> </div> </div> </li> <li class="flip-container"> <div class="flipper selected"> <div class="front"> <h2>Sleep on your keyboard</h2> </div> <div class="back"> <h2>click to select</h2> <p>Meow chuf chase the red dot give me fish purr sleep.</p> </div> </div> </li> <li class="flip-container"> <div class="flipper default"> <div class="front"> <h2>Rip the couch</h2> </div> <div class="back"> <h2>click to select</h2> <p>Sink attack chase the red dot, bat kittens lay down in your way knock over the lamp.</p> </div> </div> </li> </ul> <p id="selected">(0) fields selected</p> <a id="continue" class="button" href="#">create</a> </div> </body>
</html> <script src="js/index.js"></script>
</body>
</html>

CSS3 Selectables with information rollover - Script Codes CSS Codes

/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
html, body { font-family:'Open Sans', Arial, "Liberation Sans", sans-serif; font-size:10pt;
}
h1 { color:#656565; font-size:19pt; margin:23px 0 0 23px
}
p { color:#ffffff; font-family:'Open Sans', Arial, "Liberation Sans", sans-serif; font-size:10pt; margin:5px;
}
p.large { color:#a6a6a6; font-size:11pt; margin:7px 0 0 23px;
}
p#selected { position:absolute; left:20px; bottom:8px; font-size:14pt; color:#c5c5c5;
}
.flipper h2 { color:#989898; position:absolute; bottom:14px; right:14px; font-size:12pt; background-repeat:no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NjgzODM3NEYzQjI3MTFFMzg2RTM5N0E1MDdGNDJCMkYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NjgzODM3NTAzQjI3MTFFMzg2RTM5N0E1MDdGNDJCMkYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2ODM4Mzc0RDNCMjcxMUUzODZFMzk3QTUwN0Y0MkIyRiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo2ODM4Mzc0RTNCMjcxMUUzODZFMzk3QTUwN0Y0MkIyRiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgdbpckAAAAgSURBVHjaYmBgYGhggABSadJBA43Vj9o0VG0imgYIMAAXoQwBW213cwAAAABJRU5ErkJggg==); background-position:right; padding-right:20px
}
.flipper.selected h2, .flipper.required h2 { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDMyMUU1NjczQjI3MTFFMzhEOEFDOUIxNTBDNDMyNzkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDMyMUU1NjgzQjI3MTFFMzhEOEFDOUIxNTBDNDMyNzkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpEMzIxRTU2NTNCMjcxMUUzOEQ4QUM5QjE1MEM0MzI3OSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpEMzIxRTU2NjNCMjcxMUUzOEQ4QUM5QjE1MEM0MzI3OSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgBAu4IAAAC8SURBVHjaYvr//z8DGVgAiM8D8XwWBgYGbSBmZiAe8ALxXCBWB3FYoJovEalZAIj3QzVfAGJHJhJshmk2AOKbIM1A/IFYA0Ca7kNpkM3JIM0gCSYiNe+HuuAC1ObPMEl0A0C2BODQDLIxEWYzLgNAkuuhmhLQNDtCXYAKgHGphyV+kcF7IDZASwdwPdhcEIjkTNw24/ACCDyAanpASDMsIWEDIE2KxMQvKQmJNgaAvPAXiPVI1PcXxgAIMABBjog9za+9uAAAAABJRU5ErkJggg==); padding-right:25px;
}
#close { width:10px; height:10px; position:absolute; left:754px; top:0px; background-repeat:no-repeat;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LmRpZDpGOTQ1NTM2RjNCMjgxMUUzQTZCN0EyNTkxQjc4MjU2MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PmmO2UcAAAA8SURBVHjaYmBgYDAA4vdQGh2gyIEY/7EoNkCTwxAwwCGGVTcuWzAUYyhiYiAREGU10Z4hOXjwBjhAgAEAlbMu1/BUKbkAAAAASUVORK5CYII=);
}
.cardContainer { width:800px; height:494px; margin:40px; position:relative; float:left;
}
.cardContainer ul { width:788px; height:360px; overflow-y:auto; margin:10px 0 0 6px; padding-right:6px
}
.flip-container {	perspective: 1000; -webkit-perspective: 1000; -moz-perspective: 1000; -ms-perspective: 1000; perspective: 1000; margin:17px 0 0 17px; float:left; cursor:pointer;
}
.flipper, .front, .back {	width: 233px;	height: 98px; padding:0; margin:0;
}
.flipper {	-webkit-transition: 0.6s;	-moz-transition: 0.6s;	-o-transition: 0.6s;	-ms-transition: 0.6s;	transition: 0.6s;	-webkit-transform-style: preserve-3d;	-moz-transform-style: preserve-3d;	-ms-transform-style: preserve-3d;	transform-style: preserve-3d; border:1px solid #e7e7e7;	position: relative; box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.05); -webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.05); -moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.05);
}
.front, .back { backface-visibility:hidden; -webkit-backface-visibility:hidden; -moz-backface-visibility:hidden; -ms-backface-visibility:hidden; backface-visibility:hidden;	position: absolute;	top: 0;	left: 0; overflow:hidden;
}
.front {	z-index: 2;
}
.back {	-webkit-transform: rotateY(180deg);	-moz-transform: rotateY(180deg);	-o-transform: rotateY(180deg);	-ms-transform: rotateY(180deg);	transform: rotateY(180deg);
}
.flipper.default .front,
.flipper.default .back { background-color:#ffffff;
}
.flipper.selected .front,
.flipper.selected .back { background-color:#5a97fb;
}
.flipper.required .back { background-color:#fbb95a;
}
.flipper.required .front { background-color:#fbb95a; background-repeat:no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI0AAABACAYAAAAnKPTPAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDVDNUVDNjMzQjI4MTFFM0I4QjA4NkJENDk0Qjg3RjYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDVDNUVDNjQzQjI4MTFFM0I4QjA4NkJENDk0Qjg3RjYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0NUM1RUM2MTNCMjgxMUUzQjhCMDg2QkQ0OTRCODdGNiIgc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qVMJnoLXQTw3egkBp0yZEvazo0sYG6UQ92PBaSWL1ysNQRp0Bh6BGZUgSRifdGuXMQgV/D8EQaegV6jiLl68OGGgGyIihtO42E+VwolbGohlnihZQBrnETp37pwQLvr27VudDWEVFRUJIYqRhLlz59rXALQK3seFLGoz/M02UrzYD6R4oN4EcfuaJ0oWhidXMwmeWIQsYccZxFq0aJHVMoSoZD0CQdA1kIQmIvfxRq63VAfSQBRGJrlW3ItClPX+lDW81TqEFZzQJ1zRUCRlJtw4I8RQpeU2GIJ4rpvihxjUYtAuTt/UNP2fZBCFeRVIMlLIMtwTJnusWdVDfoaFsINuwSiwMQjF0DZzKo4AhYWF1V4FT+TC1KOuoUu9Bk2T5J2opVDOZzHZYqbiGtsBdcejyZIGr7FgwYIEkuAdGIoiJOFhMPQJWRShCwGcYuWW939HxS2T/C8LWcob6wFt8qTBCDWMVgZTY0IPAte1BUIaeoURhHMcayHKslw4oJ40gfR7/vz5UV19G73ChXb/pF5lYy4d0KZAmkdWhJOvLZeGEYJum/hFBdErxV5S5ihpMOZw07jq9h0lC9e5fUnIUuoPe46HpzSsQsUtWoXqbbk/3E3I06QobstV3LIAfrk/xJ40tRn1FVYZHlWvsskfWk+a2qxSycLP2DEZ58WtJ02txm8G/cvEL1sKWc74Q+lJU5txjdvrAgZnKEjc9IfQk6Y2u6ritkjhzZOmRqNyy9Wcjmja7MWtt1pJw0gCP33DL34s1Vtv3mokzU0lC0tUX/Hi1tvDSMM1PM4LfiV4TVNob95qNdoIzDas8IfCW13tfwIMAIhA99BnLMwnAAAAAElFTkSuQmCC);
}
.flipper.required h2,
.flipper.selected h2 { color:#ffffff;
}
.flip-container:hover .flipper {	-webkit-transform: rotateY(180deg);	-moz-transform: rotateY(180deg);	-o-transform: rotateY(180deg);	-ms-transform: rotateY(180deg);	transform: rotateY(180deg);
}
.flip-container:hover .flipper.default .front,
.flip-container:hover .flipper.default .back { background-color:#5a97fb;
}
.flip-container:hover .flipper.default .front h2,
.flip-container:hover .flipper.default .front p,
.flip-container:hover .flipper.default .back h2,
.flip-container:hover .flipper.default .back p { color:#ffffff;
}
/* Allows graceful degredation in IE */
.flip-container:hover .flipper.default .front,
.flip-container:hover .flipper.required .front,
.flip-container:hover .flipper.selected .front{ display:none;
}
.button { width:190px; height:25px; position:absolute; right:37px; bottom:4px; text-align:center; padding-top:7px; text-decoration:none; color:#ffffff; font-size:12pt; border:1px solid #c8c8c8; background-color:#4688f2; background: -moz-linear-gradient(top, #3b80ed 0%, #5a97fa 49%, #4e90fc 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3b80ed), color-stop(49%,#5a97fa), color-stop(100%,#4e90fc)); background: -webkit-linear-gradient(top, #3b80ed 0%,#5a97fa 49%,#4e90fc 100%); background: -o-linear-gradient(top, #3b80ed 0%,#5a97fa 49%,#4e90fc 100%); background: -ms-linear-gradient(top, #3b80ed 0%,#5a97fa 49%,#4e90fc 100%); background: linear-gradient(to bottom, #3b80ed 0%,#5a97fa 49%,#4e90fc 100%);
}

CSS3 Selectables with information rollover - Script Codes JS Codes

/** * @fileoverview FlipCard Engine. * @author Jason Mayes - www.jasonmayes.com */
var flipCard = function() { return { /** * Attach desired event handler. Cross browser. */ addEventHandler: function(elem, eventType, handler) { if (elem.addEventListener) { elem.addEventListener (eventType, handler, false); } else if (elem.attachEvent) { elem.attachEvent ('on' + eventType, handler); } }, /** * Set the innerHTML of a specified element. */ setHtmlById: function(elementId, html) { document.getElementById(elementId).innerHTML = html; }, /** * Set an element to have a class. */ setClasses: function(elementId, classes) { document.getElementById(elementId).className = classes; }, /** * Handle continue button click. */ continueButtonClick: function(event) { var event = event || window.event; event.preventDefault(); alert('Do something'); }, /** * Handle continue button click. */ closeButtonClick: function(event) { var event = event || window.event; event.preventDefault(); alert('Handle close'); }, /** * Count how many fields we have selected and update UI. */ countSelected: function() { var elemCount = document.getElementsByClassName('selected'); var elemCountReq = document.getElementsByClassName('required'); var total = elemCount.length + elemCountReq.length; if (total !== 1) { flipCard.setHtmlById('selected', '(' + total + ') fields selected'); } else { flipCard.setHtmlById('selected', '(1) field selected'); } }, /** * Handle a flipclard click toggle state. */ handleClick: function(event) { var event = event || window.event; event.preventDefault(); if(this.className.indexOf('selected') === -1 && this.className.indexOf('required') === -1) { this.className = this.className + ' selected'; } else if (this.className.indexOf('selected') != -1) { this.className = this.className.replace('selected', ''); } flipCard.countSelected(); } };
}();
// Initialise everything.
var elems = document.getElementsByClassName('flipper');
var x = elems.length;
while (x--) { flipCard.addEventHandler(elems[x], 'click', flipCard.handleClick);
}
flipCard.addEventHandler(document.getElementById('close'), 'click', flipCard.closeButtonClick);
flipCard.addEventHandler(document.getElementById('continue'), 'click', flipCard.continueButtonClick);
flipCard.countSelected();
CSS3 Selectables with information rollover - Script Codes
CSS3 Selectables with information rollover - Script Codes
Home Page Home
Developer Jason Mayes
Username jasonmayes
Uploaded July 07, 2022
Rating 4.5
Size 9,565 Kb
Views 44,528
Do you need developer help for CSS3 Selectables with information rollover?

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!

Jason Mayes (jasonmayes) Script Codes
Create amazing web 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!