当前位置:网站首页>PHP short video source code, thumb animation will float when you like it
PHP short video source code, thumb animation will float when you like it
2022-07-04 22:18:00 【Cloudleopard network technology】
php Short video source , There will be thumb animation floating when you like
(function() {
var coreSocialistValues
, index = Math.floor(Math.random() * coreSocialistValues.length);
document.body.addEventListener('click', function(e) {
if (e.target.tagName == 'A') {
return; }
var x = e.pageX
, y = e.pageY
, span = document.createElement('span');
span.textContent = coreSocialistValues[index];
index = (index + 1) % coreSocialistValues.length;// Mold taking cycle
span.style.cssText = ['z-index: 9999999; position: absolute; font-weight: bold; color: #ff6651; top: ', y - 20, 'px; left: ', x, 'px;'].join(''); document.body.appendChild(span); animate(span); });
function animate(el) {
// Animation var i = 0 , top = parseInt(el.style.top) , id = setInterval(frame, 16.7); function frame() {// frame if (i > 180) { clearInterval(id); el.parentNode.removeChild(el); } else { i += 2; el.style.top = top - i + 'px'; el.style.opacity = (180 - i) / 180; } } }
}());
That's all php Short video source , There will be thumb animation floating when you like , More content welcome to follow the article
边栏推荐
- 开户哪家券商比较好?网上开户安全吗
- File read write
- Basic structure of PostgreSQL - table
- HUAWEI nova 10系列发布 华为应用市场筑牢应用安全防火墙
- 迷失在Mysql的锁世界
- Why do you have to be familiar with industry and enterprise business when doing Bi development?
- 好用app推荐:扫描二维码、扫描条形码并查看历史
- 机器学习笔记 - 互信息Mutual Information
- Force buckle 2_ 1480. Dynamic sum of one-dimensional array
- 股票开户流程是什么?使用同花顺手机炒股软件安全吗?
猜你喜欢

PMO:比较25种分子优化方法的样本效率

bizchart+slider实现分组柱状图

NAACL-22 | 在基于Prompt的文本生成任务上引入迁移学习的设置

TCP protocol three times handshake process

Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history

Bookmark

Concurrent network modular reading notes transfer

Éducation à la transmission du savoir | Comment passer à un test logiciel pour l'un des postes les mieux rémunérés sur Internet? (joindre la Feuille de route pour l'apprentissage des tests logiciels)

MongoDB聚合操作总结

KDD2022 | 什么特征进行交互才是有效的?
随机推荐
国产数据库乱象
文件读取写入
股票开户流程是什么?使用同花顺手机炒股软件安全吗?
Force buckle 2_ 1480. Dynamic sum of one-dimensional array
Nat. Commun.| 机器学习对可突变的治疗性抗体的亲和力和特异性进行共同优化
阿里推出新品牌“瓴羊”,致力成为“数字化领头羊”
Force buckle 3_ 383. Ransom letter
Spatiotemporal prediction 3-graph transformer
vim 从嫌弃到依赖(23)——最后的闲扯
[acwing] solution of the 58th weekly match
MySQL storage data encryption
《命令行上的数据科学第二版》校对活动重新启动
Scala下载和配置
Solana链上应用Crema因黑客攻击停运
保证接口数据安全的10种方案
Huawei Nova 10 series released Huawei application market to build a solid application security firewall
PostgreSQL JOIN实践及原理
HBuilder X 常用的快捷键
Cadre WebGIS - kalrry
并发网络模块化 读书笔记转