Table Row Peek

Developer
Size
3,107 Kb
Views
42,504

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 Previews

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);
}
Table Row Peek - Script Codes
Table Row Peek - Script Codes
Home Page Home
Developer Andy Merskin
Username andymerskin
Uploaded August 10, 2022
Rating 3
Size 3,107 Kb
Views 42,504
Do you need developer help for Table Row Peek?

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!

Andy Merskin (andymerskin) Script Codes
Create amazing art & images 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!