二次贝塞尔曲线算法。 点击物品根据鼠标点击的坐标以及,目标点的坐标,计算出控制点的坐标。 根据三个点返回一组坐标点,每一个点代表下一帧物体的坐标。 根据坐标点绘制刷新视图更新位置,实现曲线效果。
flybus's Introduction
flybus's People
Forkers
jizhishaonian emaiqi fangming666 maogirlsqueen qfz9527 wjygamedev sunshey rongfox wuqueshan mrzhangxin cigua anstall qingchengwait changxuexu 112liyao xiangbin0712 pancakeze aths calmsboyflybus's Issues
右边那一列动画执行没左边一列好
右边那一排动画执行没左边一列好, 点击右边的产品的时候的加入效果飘出去右边那里,感觉像是飘到第三列的样子
发现两个小bug
1、多次点击会报错。
解决办法:在执行startAnimation之前先判断上次的动画是否执行完毕,如果没有则不执行这个动画。
2、第三个点的横坐标x计算有误
解决办法: 应该取前两个点横坐标和的1/2,而不是差的1/2.
bug
购物车 在屏幕左下角 怎么修改动画啊
当点击位置在购物车右边,动画有问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.