当前位置:网站首页>php短视频源码,点赞时会有大拇指动画飘起
php短视频源码,点赞时会有大拇指动画飘起
2022-07-04 21:48:00 【云豹网络科技】
php短视频源码,点赞时会有大拇指动画飘起
(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;//取模循环
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) {
//动画 var i = 0 , top = parseInt(el.style.top) , id = setInterval(frame, 16.7); function 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; } } }
}());
以上就是 php短视频源码,点赞时会有大拇指动画飘起,更多内容欢迎关注之后的文章
边栏推荐
- MySQL存储数据加密
- Locust性能测试 —— 环境搭建及使用
- 文件读取写入
- Bizchart+slider to realize grouping histogram
- gtest从一无所知到熟练使用(3)什么是test suite和test case
- 1807. Replace the parentheses in the string
- AcWing 2022 每日一题
- El tree combined with El table, tree adding and modifying operations
- How to transfer to software testing, one of the high paying jobs in the Internet? (software testing learning roadmap attached)
- 现在mysql cdc2.1版本在解析值为0000-00-00 00:00:00的datetime类
猜你喜欢

复数在数论、几何中的用途 - 曹则贤

常用的开源无代码测试工具

Enabling digital economy Fuxin software attends the BRICs high level Forum on Sustainable Development
![[optimtool.unconstrained] unconstrained optimization toolbox](/img/ef/65379499df205c068ee9bc9df797ac.png)
[optimtool.unconstrained] unconstrained optimization toolbox

TCP protocol three times handshake process

从RepVgg到MobileOne,含mobileone的代码

Deveco device tool 3.0 release brings five capability upgrades to make intelligent device development more efficient

MongoDB聚合操作总结

Super detailed tutorial, an introduction to istio Architecture Principle and practical application

智洋创新与华为签署合作协议,共同推进昇腾AI产业持续发展
随机推荐
迷失在Mysql的锁世界
WebGIS framework -- kalrry
É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)
Interview question 01.08 Zero matrix
挖财学院股票开户安全吗?开户只能在挖财开户嘛?
卷积神经网络模型之——LeNet网络结构与代码实现
QT - double buffer plot
广电五舟与华为签署合作协议,共同推进昇腾AI产业持续发展
PostgreSQL基本结构——表
傳智教育|如何轉行互聯網高薪崗比特之一的軟件測試?(附軟件測試學習路線圖)
保证接口数据安全的10种方案
网上开户哪家证券公司佣金最低,我要开户,网上开户安全吗
Xiangjiang Kunpeng joined the shengteng Wanli partnership program and continued to write a new chapter of cooperation with Huawei
[optimtool.unconstrained] unconstrained optimization toolbox
Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
凭借了这份 pdf,最终拿到了阿里,字节,百度等八家大厂 offer
Open3d surface normal vector calculation
AscendEX 上线 Walken (WLKN) - 一款卓越领先的“Walk-to-Earn”游戏
HDU - 1078 FatMouse and Cheese(记忆化搜索DP)
1807. Replace the parentheses in the string