Table Row Peek
How do I make an table row peek?
What is a table row peek? How do you make a table row peek? This script and codes were developed by Andy Merskin on 10 August 2022, Wednesday.
Table Row Peek - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Table Row Peek</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Roboto:500'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <ul class="list"> <li class="list-item"> <ul class="list-item-actions"> <li class="list-item-action">Trade</li> </ul> <div class="list-item-content">AAPL</div> </li> <li class="list-item"> <ul class="list-item-actions"> <li class="list-item-action">Trade</li> </ul> <div class="list-item-content">MSFT</div> </li> <li class="list-item"> <ul class="list-item-actions"> <li class="list-item-action">Trade</li> </ul> <div class="list-item-content">TSLA</div> </li> <li class="list-item"> <ul class="list-item-actions"> <li class="list-item-action">Trade</li> </ul> <div class="list-item-content">ATVI</div> </li> <li class="list-item"> <ul class="list-item-actions"> <li class="list-item-action">Trade</li> </ul> <div class="list-item-content">CDR</div> </li> </ul>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/velocity/1.2.3/velocity.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Table Row Peek - Script Codes CSS Codes
body { font-family: 'Roboto'; font-weight: 500;
}
* { box-sizing: border-box;
}
.container { margin: 20px auto; width: 320px; height: 560px; background-color: #ccc; overflow: hidden;
}
.list-item { box-sizing: content-box; position: relative; height: 60px; border-bottom: 1px solid #aaa;
}
.list-item-actions { position: absolute; top: 0; left: 0; width: 100%; background-color: #0066cc;
}
.list-item-action { padding: 0 20px; line-height: 60px; color: #fff;
}
.list-item-content { position: absolute; top: 0; left: 0; width: 100%; padding: 0 20px; line-height: 60px; background-color: #eee;
}
.list-item-content:focus { -webkit-animation: bounce-item 0.3s; animation: bounce-item 0.3s;
}
Table Row Peek - Script Codes JS Codes
'use strict';
var $list = document.querySelector('.list');
$list.addEventListener('click', function (e) { var target = e.target; if (!hasClass(target, 'list-item-content')) { return; } bounceElement(target);
});
function bounceElement(el) { Velocity(el, { translateX: '25%' }, { duration: 600, easing: 'easeOutQuint' }); Velocity(el, { translateX: 0 }, { duration: 600, easing: [1000, 20] });
}
function hasClass(el, klass) { return el.className && new RegExp("(\\s|^)" + klass + "(\\s|$)").test(el.className);
}
Developer | Andy Merskin |
Username | andymerskin |
Uploaded | August 10, 2022 |
Rating | 3 |
Size | 3,107 Kb |
Views | 42,504 |
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 |
Vue.js Starter | 1,268 Kb |
Typtic for OSX - Night Mode | 3,443 Kb |
GSS Transitions | 2,097 Kb |
Vue List Transitions - Bug Test | 2,741 Kb |
Wires Loading Animation | 3,813 Kb |
Text Antialiasing Differences | 2,725 Kb |
Spotr - Basic Example | 3,875 Kb |
Vue.js Intro Demo | 2,077 Kb |
SASS Easings | 2,426 Kb |
SVG Stroke Drawing Effect on Focus | 2,399 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 |
About Us | Francescaedits | 1,902 Kb |
Material Design-Layout-Principles Practice | Fraina | 2,331 Kb |
Guage | Roygwells | 5,653 Kb |
Direction-icon | Alexandremasy | 3,323 Kb |
Underlined form fields | Mitchdot | 2,323 Kb |
FCC_Twitch.tv | MitchES | 3,466 Kb |
OnScreenAction | Ozgursagiroglu | 2,647 Kb |
Calendar | Miroot | 2,033 Kb |
Collapsing Widget | Er40 | 4,279 Kb |
Mapbox Directions with geolocation tracking | Pollardld | 5,827 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!