当前位置:网站首页>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
边栏推荐
- 1807. Replace the parentheses in the string
- 抖音实战~评论数量同步更新
- Solana链上应用Crema因黑客攻击停运
- QT - double buffer plot
- 电话加密,中间4为****代替
- El tree combined with El table, tree adding and modifying operations
- 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
- Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
- How can the advertising system of large factories be upgraded without the presence of large models
- [advanced C language] array & pointer & array written test questions
猜你喜欢
做BI开发,为什么一定要熟悉行业和企业业务?
TCP protocol three times handshake process
广电五舟与华为签署合作协议,共同推进昇腾AI产业持续发展
DevEco Device Tool 3.0 Release带来5大能力升级,让智能设备开发更高效
可视化任务编排&拖拉拽 | Scaleph 基于 Apache SeaTunnel的数据集成
Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
Common open source codeless testing tools
Convolutional neural network model -- lenet network structure and code implementation
Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
常用的开源无代码测试工具
随机推荐
NAACL-22 | 在基于Prompt的文本生成任务上引入迁移学习的设置
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
ACM Multimedia 2022 | 视觉语言预训练模型中社会偏见的反事实衡量和消除
大厂的广告系统升级,怎能少了大模型的身影
并列图的画法,多排多列
Concurrent network modular reading notes transfer
2022-07-04:以下go语言代码输出什么?A:true;B:false;C:编译错误。 package main import “fmt“ func main() { fmt.Pri
Implementation rules for archiving assessment materials of robot related courses 2022 version
MySQL storage data encryption
常用的开源无代码测试工具
好用app推荐:扫描二维码、扫描条形码并查看历史
Common open source codeless testing tools
Basic structure of PostgreSQL - table
Deveco device tool 3.0 release brings five capability upgrades to make intelligent device development more efficient
广电五舟与华为签署合作协议,共同推进昇腾AI产业持续发展
WebGIS框架---kalrry
PostgreSQL服务端编程聚合和分组
机器学习笔记 - 互信息Mutual Information
DevEco Device Tool 3.0 Release带来5大能力升级,让智能设备开发更高效
i. Mx6ull driver development | 24 - platform based driver model lights LED