当前位置:网站首页>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短视频源码,点赞时会有大拇指动画飘起,更多内容欢迎关注之后的文章
边栏推荐
- Play with grpc - go deep into concepts and principles
- 傳智教育|如何轉行互聯網高薪崗比特之一的軟件測試?(附軟件測試學習路線圖)
- Cloudcompare & open3d DBSCAN clustering (non plug-in)
- Convolutional neural network model -- lenet network structure and code implementation
- Nat. Commun.| Machine learning jointly optimizes the affinity and specificity of mutagenic therapeutic antibodies
- 做BI开发,为什么一定要熟悉行业和企业业务?
- 好用app推荐:扫描二维码、扫描条形码并查看历史
- 从RepVgg到MobileOne,含mobileone的代码
- Machine learning notes mutual information
- el-tree结合el-table,树形添加修改操作
猜你喜欢
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
How is the entered query SQL statement executed?
Common open source codeless testing tools
机器学习笔记 - 互信息Mutual Information
复数在数论、几何中的用途 - 曹则贤
Super detailed tutorial, an introduction to istio Architecture Principle and practical application
GTEST from ignorance to proficiency (3) what are test suite and test case
B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条
【C语言进阶篇】数组&&指针&&数组笔试题
抖音实战~评论数量同步更新
随机推荐
VIM from dislike to dependence (23) -- the last gossip
力扣3_383. 赎金信
Energy momentum: how to achieve carbon neutralization in the power industry?
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
并发优化总结
Master the use of auto analyze in data warehouse
new IntersectionObserver 使用笔记
并列图的画法,多排多列
HDU - 2859 Phalanx(DP)
Huawei Nova 10 series released Huawei application market to build a solid application security firewall
1807. 替换字符串中的括号内容
Nat. Commun.| Machine learning jointly optimizes the affinity and specificity of mutagenic therapeutic antibodies
TCP protocol three times handshake process
WebGIS framework -- kalrry
Go language loop statement (3 in Lesson 10)
Representation of confidence interval
ApacheCN 翻译、校对、笔记整理活动进度公告 2022.7
QT—绘制其他问题
New intersectionobserver usage notes
TCP协议三次握手过程