当前位置:网站首页>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短视频源码,点赞时会有大拇指动画飘起,更多内容欢迎关注之后的文章
边栏推荐
- 283. 移动零-c与语言辅助数组法
- 1807. 替换字符串中的括号内容
- Hash table
- 并发优化总结
- How to transfer to software testing, one of the high paying jobs in the Internet? (software testing learning roadmap attached)
- GTEST from ignorance to proficiency (4) how to write unit tests with GTEST
- Xiangjiang Kunpeng joined the shengteng Wanli partnership program and continued to write a new chapter of cooperation with Huawei
- 并列图的画法,多排多列
- Application practice | Shuhai supply chain construction of data center based on Apache Doris
- Case sharing | integrated construction of data operation and maintenance in the financial industry
猜你喜欢

Nat. Commun.| Machine learning jointly optimizes the affinity and specificity of mutagenic therapeutic antibodies

QT—绘制其他问题

close系统调用分析-性能优化

Kdd2022 | what features are effective for interaction?

Tiktok actual combat ~ the number of comments is updated synchronously

抖音实战~评论数量同步更新

B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条

El tree combined with El table, tree adding and modifying operations

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

从RepVgg到MobileOne,含mobileone的代码
随机推荐
VIM from dislike to dependence (23) -- the last gossip
淘宝商品评价api接口(item_review-获得淘宝商品评论API接口),天猫商品评论API接口
A large number of virtual anchors in station B were collectively forced to refund: revenue evaporated, but they still owe station B; Jobs was posthumously awarded the U.S. presidential medal of freedo
GTEST from ignorance to skillful use (1) GTEST installation
解决异步接口慢导致的数据错乱问题
删库不必跑路!详解 MySQL 数据恢复
卷积神经网络模型之——LeNet网络结构与代码实现
leetcode 72. Edit Distance 编辑距离(中等)
MySQL存储数据加密
傳智教育|如何轉行互聯網高薪崗比特之一的軟件測試?(附軟件測試學習路線圖)
并发优化总结
ACM multimedia 2022 | counterfactual measurement and elimination of social prejudice in visual language pre training model
Why should garment enterprises talk about informatization?
Enabling digital economy Fuxin software attends the BRICs high level Forum on Sustainable Development
Zhiyang innovation signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
GTEST from ignorance to proficiency (3) what are test suite and test case
面试题 01.01. 判定字符是否唯一
Relational database
Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
The drawing method of side-by-side diagram, multi row and multi column